Class: Bond::DefaultMission
- Inherits:
-
Mission
- Object
- Mission
- Bond::DefaultMission
- Defined in:
- lib/bond/missions/default_mission.rb
Overview
This is the mission called when none of the others match.
Constant Summary
- ReservedWords =
[ "BEGIN", "END", "alias", "and", "begin", "break", "case", "class", "def", "defined", "do", "else", "elsif", "end", "ensure", "false", "for", "if", "in", "module", "next", "nil", "not", "or", "redo", "rescue", "retry", "return", "self", "super", "then", "true", "undef", "unless", "until", "when", "while", "yield" ]
Constants inherited from Mission
Instance Method Summary (collapse)
-
- (Object) default(input)
Default action which generates methods, private methods, reserved words, local variables and constants.
Methods inherited from Mission
#after_match, #call_action, #call_search, #condition, create, current_eval, #do_match, #execute, #match_message, #matches?, #name
Instance Method Details
- (Object) default(input)
Default action which generates methods, private methods, reserved words, local variables and constants.
16 17 18 |
# File 'lib/bond/missions/default_mission.rb', line 16 def default(input) Bond::Mission.current_eval("methods | private_methods | local_variables | self.class.constants") | ReservedWords end |