Class: Enumex::Action
- Inherits:
-
Object
- Object
- Enumex::Action
- Extended by:
- Forwardable
- Defined in:
- lib/enumex/action.rb
Instance Attribute Summary collapse
-
#extenders ⇒ Object
readonly
Returns the value of attribute extenders.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
-
#initialize(root) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(root) ⇒ Action
Returns a new instance of Action.
11 12 13 14 |
# File 'lib/enumex/action.rb', line 11 def initialize(root) @root = root @extenders = [] end |
Instance Attribute Details
#extenders ⇒ Object (readonly)
Returns the value of attribute extenders.
9 10 11 |
# File 'lib/enumex/action.rb', line 9 def extenders @extenders end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
9 10 11 |
# File 'lib/enumex/action.rb', line 9 def root @root end |