Class: ProjectSimulator::Action
- Inherits:
-
Object
- Object
- ProjectSimulator::Action
- Includes:
- AppRoutes
- Defined in:
- lib/projectsimulator.rb
Instance Attribute Summary collapse
-
#to_type ⇒ Object
readonly
Returns the value of attribute to_type.
Instance Method Summary collapse
-
#initialize(s, event: '', debug: false) ⇒ Action
constructor
A new instance of Action.
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_type ⇒ Object (readonly)
Returns the value of attribute to_type.
225 226 227 |
# File 'lib/projectsimulator.rb', line 225 def to_type @to_type end |