module SelectiveInspect::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.new(id: 1, name: 'John', health: 100, ip_address: '192.168.1.133')
# =>

Returns the String that describes this object and its internals.

# File lib/selective_inspect.rb, line 33
def inspect(*whitelist)
  SelectiveInspect.perform_inspect(self, *whitelist)
end