Module: Kernel
- Defined in:
- lib/parlour/kernel_hack.rb
Instance Method Summary collapse
Instance Method Details
#yield_self {|_self| ... } ⇒ Object
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 |