module Tins::BlockSelf
This module includes the block_self
module_function.
Public Instance Methods
block_self(&block)
click to toggle source
This method returns the receiver self of the context in which block was created.
# File lib/tins/dslkit.rb, line 514 def block_self(&block) eval 'self', block.__send__(:binding) end