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

:nodoc:

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods included from AE::Should

#should, #should!, #should=

Methods included from AE::Must

#must, #must!, #must=

Methods included from AE::Expect

#expect, #expect!, #expected

Methods included from AE::Assert

#assert, #assert=, #flunk, #refute, #refute=

Class Method Details

+ (Object) basic_object_method_added



76
# File 'lib/ae/basic_object.rb', line 76

alias_method :basic_object_method_added, :method_added

+ (Object) find_hidden_method(name)



87
88
89
# File 'lib/ae/basic_object.rb', line 87

def find_hidden_method(name)
  nil
end

+ (Object) method_added(name)



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

- (Boolean) eql?(value = NoArgument)

Allows eql? to take a block.

Returns:

  • (Boolean)


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

- (Boolean) equal?(value = NoArgument)

Allows equal? to take a block.

Returns:

  • (Boolean)


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