Class: DryHamlHandlebars::ContentItem
- Inherits:
-
Object
- Object
- DryHamlHandlebars::ContentItem
- Defined in:
- lib/dry_haml_handlebars.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(name, path) ⇒ ContentItem
constructor
A new instance of ContentItem.
Constructor Details
#initialize(name, path) ⇒ ContentItem
Returns a new instance of ContentItem.
70 71 72 |
# File 'lib/dry_haml_handlebars.rb', line 70 def initialize(name, path) @name, @path = name, path end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
67 68 69 |
# File 'lib/dry_haml_handlebars.rb', line 67 def content @content end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
68 69 70 |
# File 'lib/dry_haml_handlebars.rb', line 68 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
68 69 70 |
# File 'lib/dry_haml_handlebars.rb', line 68 def path @path end |