Exception: Steep::Typing::UnknownNodeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/steep/typing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(op, node:) ⇒ UnknownNodeError

Returns a new instance of UnknownNodeError.



7
8
9
10
11
# File 'lib/steep/typing.rb', line 7

def initialize(op, node:)
  @op = op
  @node = node
  super "Unknown node for #{op}: #{node.inspect}"
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



5
6
7
# File 'lib/steep/typing.rb', line 5

def node
  @node
end

#opObject (readonly)

Returns the value of attribute op.



4
5
6
# File 'lib/steep/typing.rb', line 4

def op
  @op
end