jekyll-responsive-image/lib/jekyll/responsive_image/image.rb

28 lines
485 B
Ruby
Raw Normal View History

2016-09-28 07:04:09 +10:00
module Jekyll
module ResponsiveImage
class Image
def initialize(width, height, config)
@width = width
@height = height
@config = config
end
def to_h
{
'path' => '',
'width' => @width,
'height' => @height,
'basename' => '',
'dirname' => '',
'filename' => '',
'extension' => ''
}
end
def to_liquid
to_h
end
end
end
end