Module: Algebrick::Value
Overview
Any value of Algebraic type is kind of Value
Instance Method Summary
collapse
Methods included from Matching
#any, #match, #match?, #on
Methods included from TypeCheck
#Child!, #Child?, #Match!, #Match?, #Type!, #Type?
Instance Method Details
#==(other) ⇒ Object
21
22
23
|
# File 'lib/algebrick/value.rb', line 21
def ==(other)
raise NotImplementedError
end
|
37
38
39
|
# File 'lib/algebrick/value.rb', line 37
def inspect
to_s
end
|
#pretty_print(q) ⇒ Object
33
34
35
|
# File 'lib/algebrick/value.rb', line 33
def pretty_print(q)
raise NotImplementedError
end
|
29
30
31
|
# File 'lib/algebrick/value.rb', line 29
def to_s
raise NotImplementedError
end
|
25
26
27
|
# File 'lib/algebrick/value.rb', line 25
def type
raise NotImplementedError
end
|