I am trying to write this inside my class:
class << self
def steps
@steps.call
end
def transitions
@transitions.call
end
def steps(&steps)
@steps = steps
end
def transitions(&transitions)
@transitions = transitions
end
end
That won't work since in Ruby, I can't do this kind of method overloading. Is there a way around this?