Exception: Duby::Typer::InferenceError

Inherits:
Exception
  • Object
show all
Defined in:
lib/duby/typer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, node = nil) ⇒ InferenceError

Returns a new instance of InferenceError.



16
17
18
19
# File 'lib/duby/typer.rb', line 16

def initialize(msg, node = nil)
  super(msg)
  @node = node
end

Instance Attribute Details

#nodeObject

Returns the value of attribute node.



15
16
17
# File 'lib/duby/typer.rb', line 15

def node
  @node
end