class Erlang::OtpErlangFunction

Attributes

tag[R]
value[R]

Public Class Methods

new(tag, value) click to toggle source
# File lib/erlang.rb, line 116
def initialize(tag, value)
    @tag = tag
    @value = value
end

Public Instance Methods

==(other) click to toggle source
# File lib/erlang.rb, line 131
def ==(other)
    return binary == other.binary
end
Also aliased as: eql?
binary() click to toggle source
# File lib/erlang.rb, line 122
def binary
    return "#{@tag.chr}#{@value}"
end
eql?(other)
Alias for: ==
hash() click to toggle source
# File lib/erlang.rb, line 128
def hash
    return binary.hash
end
to_s() click to toggle source
# File lib/erlang.rb, line 125
def to_s
    return "#{self.class.name}('#{@tag.to_s}','#{@value.to_s}')"
end