module Hashie::Utils
A collection of helper methods that can be used throughout the gem.
Public Class Methods
method_information(bound_method)
click to toggle source
Describes a method by where it was defined.
@param bound_method [Method] The method to describe. @return [String]
# File lib/hashie/utils.rb, line 8 def self.method_information(bound_method) if bound_method.source_location "defined at #{bound_method.source_location.join(':')}" else "defined in #{bound_method.owner}" end end