Class: ActiveFedora::Aggregation::AppendsToAggregation
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- ActiveFedora::Aggregation::AppendsToAggregation
- Defined in:
- lib/active_fedora/aggregation/appends_to_aggregation.rb
Instance Attribute Summary collapse
-
#parent_node ⇒ Object
readonly
Returns the value of attribute parent_node.
Instance Method Summary collapse
-
#initialize(proxy, parent_node) ⇒ AppendsToAggregation
constructor
A new instance of AppendsToAggregation.
- #is_a?(klass) ⇒ Boolean
- #save(*args) ⇒ Object
Constructor Details
#initialize(proxy, parent_node) ⇒ AppendsToAggregation
Returns a new instance of AppendsToAggregation.
6 7 8 9 |
# File 'lib/active_fedora/aggregation/appends_to_aggregation.rb', line 6 def initialize(proxy, parent_node) @parent_node = parent_node super(proxy) end |
Instance Attribute Details
#parent_node ⇒ Object (readonly)
Returns the value of attribute parent_node.
3 4 5 |
# File 'lib/active_fedora/aggregation/appends_to_aggregation.rb', line 3 def parent_node @parent_node end |
Instance Method Details
#is_a?(klass) ⇒ Boolean
11 12 13 |
# File 'lib/active_fedora/aggregation/appends_to_aggregation.rb', line 11 def is_a?(klass) __getobj__.is_a?(klass) end |
#save(*args) ⇒ Object
15 16 17 18 19 |
# File 'lib/active_fedora/aggregation/appends_to_aggregation.rb', line 15 def save(*args) insert_link do super end end |