lib/rdio/utils.rb
# Like Object#inspect for passed `object` but skips instance variables to
# avoid bloating output when debugging.
Like Object#inspect for passed `object` but skips instance variables to
avoid bloating output when debugging.
Like Object#inspect for passed ` object ` but skips instance variables to avoid bloating output when debugging .
def custom_inspect(object, *ivars_to_skip)
      variables = (object.instance_variables - ivars_to_skip).
        map { |var| "#{var}=#{object.instance_variable_get(var).inspect}" }.
        join(', ')
      "<#{object.class}: #{variables}>"
    end
def custom_inspect ( object , * ivars_to_skip ) variables = ( object . instance_variables - ivars_to_skip ) . map { | var | "#{var}=#{object.instance_variable_get(var).inspect}" } . join ( ', ' ) "<#{object.class}: #{variables}>" end
Like Object#inspect for passed `object` but skips instance variables to
avoid bloating output when debugging.
Like Object#inspect for passed ` object ` but skips instance variables to avoid bloating output when debugging .
object
<not_specific>
ivars_to_skip
<not_specific>