Class: ProjectSimulator::Action

Inherits:
Object
  • Object
show all
Includes:
AppRoutes
Defined in:
lib/projectsimulator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s, event: '', debug: false) ⇒ Action

Returns a new instance of Action.



227
228
229
230
231
232
233
234
235
# File 'lib/projectsimulator.rb', line 227

def initialize(s, event: '', debug: false)

  super()
  @debug = debug
  params = {s: s, event: event}
  actions(params)
  @to_type = find_action(s) || {}

end

Instance Attribute Details

#to_typeObject (readonly)

Returns the value of attribute to_type.



225
226
227
# File 'lib/projectsimulator.rb', line 225

def to_type
  @to_type
end