Class: DryHamlHandlebars::ContentItem

Inherits:
Object
  • Object
show all
Defined in:
lib/dry_haml_handlebars.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject

Returns the value of attribute content.



67
68
69
# File 'lib/dry_haml_handlebars.rb', line 67

def content
  @content
end

#nameObject (readonly)

Returns the value of attribute name.



68
69
70
# File 'lib/dry_haml_handlebars.rb', line 68

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



68
69
70
# File 'lib/dry_haml_handlebars.rb', line 68

def path
  @path
end