Class: Amiba::Source::Partial
- Inherits:
-
Object
- Object
- Amiba::Source::Partial
- Includes:
- Amiba::Source
- Defined in:
- lib/amiba/source/partial.rb
Instance Attribute Summary collapse
-
#dir ⇒ Object
Returns the value of attribute dir.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #filename ⇒ Object (also: #output_filename)
-
#initialize(path) ⇒ Partial
constructor
A new instance of Partial.
Methods included from Amiba::Source
Constructor Details
Instance Attribute Details
#dir ⇒ Object
Returns the value of attribute dir.
8 9 10 |
# File 'lib/amiba/source/partial.rb', line 8 def dir @dir end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/amiba/source/partial.rb', line 8 def name @name end |
Instance Method Details
#filename ⇒ Object Also known as: output_filename
13 14 15 |
# File 'lib/amiba/source/partial.rb', line 13 def filename @filename ||= File.join("pages", @dir, "_#{@name}.haml") end |