Class: PictureTag::Parsers::Preset
- Inherits:
-
Object
- Object
- PictureTag::Parsers::Preset
- Defined in:
- lib/jekyll_picture_tag/parsers/preset.rb
Overview
Handles the specific tag image set to construct.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(name) ⇒ Preset
constructor
A new instance of Preset.
Constructor Details
#initialize(name) ⇒ Preset
Returns a new instance of Preset.
7 8 9 |
# File 'lib/jekyll_picture_tag/parsers/preset.rb', line 7 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/jekyll_picture_tag/parsers/preset.rb', line 5 def name @name end |
Instance Method Details
#[](key) ⇒ Object
11 12 13 |
# File 'lib/jekyll_picture_tag/parsers/preset.rb', line 11 def [](key) content[key] end |