Class: Object

Inherits:
BasicObject
Defined in:
lib/antlr4/base.rb

Instance Method Summary collapse

Instance Method Details

#type_check(o, t) ⇒ Object



55
56
57
58
59
# File 'lib/antlr4/base.rb', line 55

def type_check(o, t)
  unless o.kind_of? t 
    raise Exception.new("Fail Type Check! #{o.class} is not kind of #{t}" )
  end
end