class Erlang::OtpErlangFunction

Attributes

tag[R]
value[R]

Public Class Methods

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

Public Instance Methods

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