Class: ActivePath::Configuration::Partial
- Inherits:
-
Object
- Object
- ActivePath::Configuration::Partial
- Defined in:
- lib/active_path/configuration/partial.rb
Instance Attribute Summary collapse
-
#attachments ⇒ Object
readonly
Returns the value of attribute attachments.
Instance Method Summary collapse
-
#initialize ⇒ Partial
constructor
A new instance of Partial.
- #with(partial_name) ⇒ Object
Constructor Details
#initialize ⇒ Partial
7 8 9 |
# File 'lib/active_path/configuration/partial.rb', line 7 def initialize = [] end |
Instance Attribute Details
#attachments ⇒ Object (readonly)
Returns the value of attribute attachments.
5 6 7 |
# File 'lib/active_path/configuration/partial.rb', line 5 def end |
Instance Method Details
#with(partial_name) ⇒ Object
11 12 13 14 |
# File 'lib/active_path/configuration/partial.rb', line 11 def with(partial_name) << Attachment.new(partial_name) .last end |