Class: ProjectSimulator::Constraint

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s, time: nil, debug: false) ⇒ Constraint

Returns a new instance of Constraint.



311
312
313
314
315
316
317
318
319
320
# File 'lib/projectsimulator.rb', line 311

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_typeObject (readonly)

Returns the value of attribute to_type.



309
310
311
# File 'lib/projectsimulator.rb', line 309

def to_type
  @to_type
end