Class: Cardiac::ChainReflection
- Inherits:
-
Object
- Object
- Cardiac::ChainReflection
- Defined in:
- lib/cardiac/reflections.rb
Instance Attribute Summary collapse
-
#base_reflection ⇒ Object
readonly
Returns the value of attribute base_reflection.
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#handler_chain ⇒ Object
readonly
Returns the value of attribute handler_chain.
-
#macro ⇒ Object
readonly
Returns the value of attribute macro.
Instance Method Summary collapse
-
#initialize(macro, base, *handler_chain, &block) ⇒ ChainReflection
constructor
A new instance of ChainReflection.
Constructor Details
#initialize(macro, base, *handler_chain, &block) ⇒ ChainReflection
Returns a new instance of ChainReflection.
61 62 63 |
# File 'lib/cardiac/reflections.rb', line 61 def initialize(macro, base, *handler_chain, &block) @macro, @base_reflection, @handler_chain, @block = macro, base, handler_chain, block end |
Instance Attribute Details
#base_reflection ⇒ Object (readonly)
Returns the value of attribute base_reflection.
59 60 61 |
# File 'lib/cardiac/reflections.rb', line 59 def base_reflection @base_reflection end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
59 60 61 |
# File 'lib/cardiac/reflections.rb', line 59 def block @block end |
#handler_chain ⇒ Object (readonly)
Returns the value of attribute handler_chain.
59 60 61 |
# File 'lib/cardiac/reflections.rb', line 59 def handler_chain @handler_chain end |
#macro ⇒ Object (readonly)
Returns the value of attribute macro.
59 60 61 |
# File 'lib/cardiac/reflections.rb', line 59 def macro @macro end |