module RubySelectiveInspect::InstanceMethods
Public Instance Methods
inspect(*whitelist)
click to toggle source
Public: Inspects this object in a customizable way.
whitelist - (optional) The names of the instance variables to be inspected
Examples
player = Player.new(id: 1, name: 'John', health: 100, ip_address: '192.168.1.133') player.inspect # => player.inspect(:name) # =>
Returns the String that describes this object and its internals.
# File lib/ruby_selective_inspect.rb, line 37 def inspect(*whitelist) RubySelectiveInspect.perform_inspect(self, *whitelist) end