Class: ActiveFedora::Aggregation::OrderedProxy
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- ActiveFedora::Aggregation::OrderedProxy
- Defined in:
- lib/active_fedora/aggregation/ordered_proxy.rb
Overview
A proxy which knows how to delete itself from an aggregation.
Instance Attribute Summary collapse
-
#parent_node ⇒ Object
readonly
Returns the value of attribute parent_node.
Instance Method Summary collapse
- #delete(*args) ⇒ Object
-
#initialize(proxy, parent_node) ⇒ OrderedProxy
constructor
A new instance of OrderedProxy.
- #is_a?(klass) ⇒ Boolean
Constructor Details
#initialize(proxy, parent_node) ⇒ OrderedProxy
Returns a new instance of OrderedProxy.
8 9 10 11 |
# File 'lib/active_fedora/aggregation/ordered_proxy.rb', line 8 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.
4 5 6 |
# File 'lib/active_fedora/aggregation/ordered_proxy.rb', line 4 def parent_node @parent_node end |
Instance Method Details
#delete(*args) ⇒ Object
17 18 19 20 21 |
# File 'lib/active_fedora/aggregation/ordered_proxy.rb', line 17 def delete(*args) link_node_if_true do super end end |
#is_a?(klass) ⇒ Boolean
13 14 15 |
# File 'lib/active_fedora/aggregation/ordered_proxy.rb', line 13 def is_a?(klass) __getobj__.is_a?(klass) end |