Class: Ridley::ChainLink Private
- Inherits:
-
Object
- Object
- Ridley::ChainLink
- Defined in:
- lib/ridley/chain_link.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #child ⇒ Object readonly private
- #parent ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(parent, child) ⇒ ChainLink
constructor
private
A new instance of ChainLink.
- #method_missing(fun, *args, &block) ⇒ Object private
- #new(*args) ⇒ Object private
Constructor Details
#initialize(parent, child) ⇒ ChainLink
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ChainLink.
12 13 14 15 |
# File 'lib/ridley/chain_link.rb', line 12 def initialize(parent, child) @parent = parent @child = child end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(fun, *args, &block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 |
# File 'lib/ridley/chain_link.rb', line 21 def method_missing(fun, *args, &block) child.send(fun, parent, *args, &block) end |
Instance Attribute Details
#child ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 7 8 |
# File 'lib/ridley/chain_link.rb', line 6 def child @child end |
#parent ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 |
# File 'lib/ridley/chain_link.rb', line 5 def parent @parent end |
Instance Method Details
#new(*args) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/ridley/chain_link.rb', line 17 def new(*args) child.send(:new, parent, *args) end |