Class: Object

Inherits:
BasicObject
Defined in:
lib/rupture/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#fix(pred, f = nil, &fn) ⇒ Object



32
33
34
# File 'lib/rupture/core_ext.rb', line 32

def fix(pred, f = nil, &fn)
  Rupture::Function.fix(self, pred, fn || f)
end

#let(*vals) {|_self, vals| ... } ⇒ Object

Yields:

  • (_self, vals)

Yield Parameters:

  • _self (Object)

    the object that the method was called on



28
29
30
# File 'lib/rupture/core_ext.rb', line 28

def let(*vals)
  yield(self, *vals)
end

#map?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/rupture/core_ext.rb', line 24

def map?
  false
end