Module: Pakyow::Support::Inspectable::ClassMethods

Defined in:
lib/pakyow/support/inspectable.rb

Instance Method Summary collapse

Instance Method Details

#inspectable(*inspectables) ⇒ Object

Sets the instance vars and public methods that should be part of the inspection.

Parameters:

  • inspectables (Array<Symbol>)

    The list of instance variables and public methods.



39
40
41
# File 'lib/pakyow/support/inspectable.rb', line 39

def inspectable(*inspectables)
  @__inspectables = inspectables.map(&:to_sym)
end