Class: ActionList
- Inherits:
-
Object
show all
- Defined in:
- lib/action_list.rb
Defined Under Namespace
Classes: UnknownActionError
Instance Method Summary
collapse
Constructor Details
#initialize(actions_list, args) ⇒ ActionList
Returns a new instance of ActionList.
6
7
8
9
10
11
|
# File 'lib/action_list.rb', line 6
def initialize(actions_list, args)
@actions_list = actions_list
@args = args
process_action_list
end
|
Instance Method Details
#aliases ⇒ Object
25
26
27
|
# File 'lib/action_list.rb', line 25
def aliases
@aliases.keys
end
|
#get(name) ⇒ Object
13
14
15
|
# File 'lib/action_list.rb', line 13
def get(name)
@actions[name]
end
|
#get_by_alias(name) ⇒ Object
17
18
19
|
# File 'lib/action_list.rb', line 17
def get_by_alias(name)
@aliases[name]
end
|
#names ⇒ Object
21
22
23
|
# File 'lib/action_list.rb', line 21
def names
@actions.keys
end
|