Class: Obake::Transition

Inherits:
Object
  • Object
show all
Defined in:
lib/obake/transition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(to, data = {}) ⇒ Transition

Returns a new instance of Transition.



5
6
7
8
# File 'lib/obake/transition.rb', line 5

def initialize(to, data = {})
  @to = to
  @data = data
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



3
4
5
# File 'lib/obake/transition.rb', line 3

def data
  @data
end

#toObject

Returns the value of attribute to.



3
4
5
# File 'lib/obake/transition.rb', line 3

def to
  @to
end