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.



197
198
199
200
201
202
203
204
205
# File 'lib/projectsimulator.rb', line 197

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.



195
196
197
# File 'lib/projectsimulator.rb', line 195

def to_type
  @to_type
end