Class: Enumex::Action

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/enumex/action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#extendersObject (readonly)

Returns the value of attribute extenders.



9
10
11
# File 'lib/enumex/action.rb', line 9

def extenders
  @extenders
end

#rootObject (readonly)

Returns the value of attribute root.



9
10
11
# File 'lib/enumex/action.rb', line 9

def root
  @root
end