Module: Kernel
- Defined in:
- lib/parlour/kernel_hack.rb
Instance Method Summary collapse
- #yield_self {|_self| ... } ⇒ Object (also: #then)
Instance Method Details
#yield_self {|_self| ... } ⇒ Object Also known as: then
2 3 4 5 |
# File 'lib/parlour/kernel_hack.rb', line 2 def yield_self return to_enum(__method__) { 1 } unless block_given? yield self end |