Class: ActivePath::Configuration::Partials
- Inherits:
-
Object
- Object
- ActivePath::Configuration::Partials
- Defined in:
- lib/active_path/configuration/partials.rb
Instance Attribute Summary collapse
-
#partials ⇒ Object
readonly
Returns the value of attribute partials.
Instance Method Summary collapse
- #append(key) ⇒ Object
-
#initialize ⇒ Partials
constructor
A new instance of Partials.
- #prepend(key) ⇒ Object
Constructor Details
#initialize ⇒ Partials
Returns a new instance of Partials.
7 8 9 |
# File 'lib/active_path/configuration/partials.rb', line 7 def initialize @partials = {} end |
Instance Attribute Details
#partials ⇒ Object (readonly)
Returns the value of attribute partials.
5 6 7 |
# File 'lib/active_path/configuration/partials.rb', line 5 def partials @partials end |
Instance Method Details
#append(key) ⇒ Object
15 16 17 |
# File 'lib/active_path/configuration/partials.rb', line 15 def append(key) partial(key, false) end |
#prepend(key) ⇒ Object
11 12 13 |
# File 'lib/active_path/configuration/partials.rb', line 11 def prepend(key) partial(key, true) end |