Class: EngineeringCalculator::ActionManager
- Inherits:
-
Object
- Object
- EngineeringCalculator::ActionManager
- Defined in:
- lib/engineering_calculator/calculator/support/action_manager.rb
Constant Summary collapse
- @@actions =
['use','calculators','quit', 'function', 'functions']
Class Method Summary collapse
Class Method Details
.action?(action) ⇒ Boolean
6 7 8 |
# File 'lib/engineering_calculator/calculator/support/action_manager.rb', line 6 def self.action?(action) is_action?(action) end |
.actions ⇒ Object
10 11 12 |
# File 'lib/engineering_calculator/calculator/support/action_manager.rb', line 10 def self.actions formatted_actions(@@actions) end |
.perform(call, args = nil) ⇒ Object
14 15 16 |
# File 'lib/engineering_calculator/calculator/support/action_manager.rb', line 14 def self.perform(call,args=nil) call_method(call,args) end |