Class: Object

Inherits:
BasicObject
Defined in:
lib/awshucks/ext.rb,
lib/awshucks/ext.rb

Overview

Instance Method Summary collapse

Instance Method Details

#in?(enum) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/awshucks/ext.rb', line 12

def in?(enum)
  enum.include? self
end

#returning(obj) {|obj| ... } ⇒ Object

Yields:

  • (obj)


4
5
6
7
# File 'lib/awshucks/ext.rb', line 4

def returning(obj)
  yield obj
  obj
end