Class: ActivePath::ViewInjection::Configuration::Partials
- Inherits:
-
Object
- Object
- ActivePath::ViewInjection::Configuration::Partials
- Defined in:
- lib/active_path/view_injection/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.
8 9 10 |
# File 'lib/active_path/view_injection/configuration/partials.rb', line 8 def initialize @partials = {} end |
Instance Attribute Details
#partials ⇒ Object (readonly)
Returns the value of attribute partials.
6 7 8 |
# File 'lib/active_path/view_injection/configuration/partials.rb', line 6 def partials @partials end |
Instance Method Details
#append(key) ⇒ Object
16 17 18 |
# File 'lib/active_path/view_injection/configuration/partials.rb', line 16 def append(key) partial(key, false) end |
#prepend(key) ⇒ Object
12 13 14 |
# File 'lib/active_path/view_injection/configuration/partials.rb', line 12 def prepend(key) partial(key, true) end |