Module: StateFu::TransitionArgsArray

Defined in:
lib/support/arrays.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#transitionObject (readonly)

Returns the value of attribute transition.



48
49
50
# File 'lib/support/arrays.rb', line 48

def transition
  @transition
end

Instance Method Details

#[](index) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/support/arrays.rb', line 61

def []( index )
  begin
    super( index )
  rescue TypeError
    options[index]
  end
end

#init(t) ⇒ Object



50
51
52
53
# File 'lib/support/arrays.rb', line 50

def init(t)
  @transition = t
  self
end