Class: Obake::Transition
- Inherits:
-
Object
- Object
- Obake::Transition
- Defined in:
- lib/obake/transition.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(to, data = {}) ⇒ Transition
constructor
A new instance of Transition.
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
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/obake/transition.rb', line 3 def data @data end |
#to ⇒ Object
Returns the value of attribute to.
3 4 5 |
# File 'lib/obake/transition.rb', line 3 def to @to end |