lib/hanami/utils/hash.rb
# Override Ruby's method_missing in order to provide ::Hash interface
#
# @api private
# @since 0.3.0
#
# @raise [NoMethodError] If doesn't respond to the given method
Override Ruby's method_missing in order to provide ::Hash interface
Override Ruby ' s method_missing in order to provide :: Hash interface
def method_missing(m, *args, &blk)
        if respond_to?(m)
          h = @hash.__send__(m, *args, &blk)
          h = self.class.new(h) if h.is_a?(::Hash)
          h
        else
          raise NoMethodError.new(%(undefined method `#{ m }' for #{ @hash }:#{ self.class }))
        end
      end
def method_missing ( m , * args , & blk ) if respond_to? ( m ) h = @hash . __send__ ( m , * args , & blk ) h = self . class . new ( h ) if h . is_a? ( :: Hash ) h else raise NoMethodError . new ( %(undefined method `#{ m }' for #{ @hash }:#{ self.class }) ) end end
Override Ruby's method_missing in order to provide ::Hash interface
Override Ruby ' s method_missing in order to provide :: Hash interface
[NoMethodError] If doesn't respond to the given method
[ NoMethodError ] If doesn ' t respond to the given method
m
args
blk
api
None
since
None