Exception: Emfrp::Typing::UnionType::UnifyError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/emfrp/typing/union_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(a, b) ⇒ UnifyError

Returns a new instance of UnifyError.



6
7
8
# File 'lib/emfrp/typing/union_type.rb', line 6

def initialize(a, b)
  @a, @b = a, b
end

Instance Attribute Details

#aObject (readonly)

Returns the value of attribute a.



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

def a
  @a
end

#bObject (readonly)

Returns the value of attribute b.



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

def b
  @b
end