Sha256: 69aa7279376712dbef8db40912c0c134f9fdb6cc4235bc335b394a2f524a8fc3
Contents?: true
Size: 589 Bytes
Versions: 3
Compression:
Stored size: 589 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hobo-0.7.3 | hobo_files/plugin/lib/hobo/undefined.rb |
hobo-0.7.4 | hobo_files/plugin/lib/hobo/undefined.rb |
hobo-0.7.5 | hobo_files/plugin/lib/hobo/undefined.rb |