Exception: Object::CatchThrow

Inherits:
Exception
  • Object
show all
Defined in:
lib/opal/aasm.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ CatchThrow

Returns a new instance of CatchThrow.



153
154
155
156
# File 'lib/opal/aasm.rb', line 153

def initialize(args)
  @sym = args[0]
  @arg = args[1] if args.count > 1
end

Instance Attribute Details

#argObject (readonly)

Returns the value of attribute arg.



152
153
154
# File 'lib/opal/aasm.rb', line 152

def arg
  @arg
end

#symObject (readonly)

Returns the value of attribute sym.



151
152
153
# File 'lib/opal/aasm.rb', line 151

def sym
  @sym
end