Class: ProjectSimulator::Constraint
- Inherits:
-
Object
- Object
- ProjectSimulator::Constraint
- 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, time: nil, debug: false) ⇒ Constraint
constructor
A new instance of Constraint.
Constructor Details
#initialize(s, time: nil, debug: false) ⇒ Constraint
Returns a new instance of Constraint.
281 282 283 284 285 286 287 288 289 290 |
# File 'lib/projectsimulator.rb', line 281 def initialize(s, time: nil, debug: false) super() @time, @debug = time, debug params = {s: s } constraints(params) @to_type = find_constraint(s) end |
Instance Attribute Details
#to_type ⇒ Object (readonly)
Returns the value of attribute to_type.
279 280 281 |
# File 'lib/projectsimulator.rb', line 279 def to_type @to_type end |