module Erlang::Term

@private

Private Class Methods

included(base) click to toggle source

Extends the including class with ClassMethods.

@param [Class] subclass the inheriting class

Calls superclass method
# File lib/erlang/term.rb, line 8
def included(base)
  super
  base.extend(ClassMethods)
  base.send(:include, ::Comparable)
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/erlang/term.rb, line 20
def <=>(other)
  return Erlang.compare(self, other)
end