Class: ActivePath::ViewInjection::Configuration::Partials

Inherits:
Object
  • Object
show all
Defined in:
lib/active_path/view_injection/configuration/partials.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePartials

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

#partialsObject (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