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