Class: Object
- Inherits:
- BasicObject
- Includes:
- AE::Assert, AE::Expect, AE::Must, AE::Should
- Defined in:
- lib/ae/must.rb,
lib/ae.rb,
lib/ae/should.rb,
lib/ae/basic_object.rb,
lib/ae/core_ext/helpers.rb
Overview
Same as above, except in Object.
Class Method Summary collapse
- .basic_object_method_added ⇒ Object
- .find_hidden_method(name) ⇒ Object
-
.method_added(name) ⇒ Object
Detect method additions to Object and remove them in the BlankSlate class.
Instance Method Summary collapse
-
#eql?(value = NoArgument) ⇒ Boolean
Allows eql? to take a block.
-
#equal?(value = NoArgument) ⇒ Boolean
Allows equal? to take a block.
Methods included from AE::Should
Methods included from AE::Must
Methods included from AE::Expect
Methods included from AE::Assert
#assert, #assert=, #flunk, #refute, #refute=
Class Method Details
.basic_object_method_added ⇒ Object
76 |
# File 'lib/ae/basic_object.rb', line 76 alias_method :basic_object_method_added, :method_added |
.find_hidden_method(name) ⇒ Object
87 88 89 |
# File 'lib/ae/basic_object.rb', line 87 def find_hidden_method(name) nil end |
.method_added(name) ⇒ Object
Detect method additions to Object and remove them in the BlankSlate class.
80 81 82 83 84 85 |
# File 'lib/ae/basic_object.rb', line 80 def method_added(name) result = basic_object_method_added(name) return result if self != Object AE::BasicObject.hide(name) result end |
Instance Method Details
#eql?(value = NoArgument) ⇒ Boolean
Allows eql? to take a block.
93 94 95 96 97 98 99 |
# File 'lib/ae/core_ext/helpers.rb', line 93 def eql?(value=NoArgument) #:yield: if block_given? super(yield) else super end end |
#equal?(value = NoArgument) ⇒ Boolean
Allows equal? to take a block.
84 85 86 87 88 89 90 |
# File 'lib/ae/core_ext/helpers.rb', line 84 def equal?(value=NoArgument) #:yield: if block_given? super(yield) else super end end |