Class: Class

Inherits:
Object show all
Defined in:
lib/abstract.rb,
lib/concrete.rb,
lib/verbose_object.rb

Instance Method Summary collapse

Instance Method Details

#==(rhs) ⇒ Object



96
97
98
# File 'lib/verbose_object.rb', line 96

def == ( rhs )
  return object_id == rhs.object_id
end

#abstractObject



44
45
46
# File 'lib/abstract.rb', line 44

def abstract
  include Abstract
end

#abstract?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/abstract.rb', line 48

def abstract?
  include?(Abstract) ? (not include?(Concrete)) : false;
end

#concreteObject



34
35
36
# File 'lib/concrete.rb', line 34

def concrete
  include Concrete
end

#old_class_equalObject



95
# File 'lib/verbose_object.rb', line 95

alias_method :old_class_equal, :==

#verbosify!(opts = nil) ⇒ Object

Raises:

  • (TypeError)


91
92
93
# File 'lib/verbose_object.rb', line 91

def verbosify! ( opts=nil )
  raise TypeError
end