Class: EngineeringCalculator::ActionManager

Inherits:
Object
  • Object
show all
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

Returns:

  • (Boolean)


6
7
8
# File 'lib/engineering_calculator/calculator/support/action_manager.rb', line 6

def self.action?(action)
  is_action?(action)
end

.actionsObject



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