Sha256: 6caa20a38c2fbc9fcfa619c6b60a22394df09c03302b87081649d0eded51f5c1
Contents?: true
Size: 585 Bytes
Versions: 90
Compression:
Stored size: 585 Bytes
Contents
module Hobo class Undefined def initialize(*args) options = args.extract_options! @klass = args.first || Object end def hobo_undefined? true end def class @klass end def is_a?(klass) return klass == @klass || klass > @klass end def to_s "<Hobo::Undefined #{@klass}>" end def inspect to_s end def new_record? true end def method_missing(name, *args) raise UndefinedAccessError.new("call to: Hobo::Undefined##{name}") end undef_method :== end end
Version data entries
90 entries across 90 versions & 1 rubygems