Module: Pollex::PollexClass

Included in:
Entry, Language, Level, Reconstruction, SemanticField, Source
Defined in:
lib/pollex/pollex_class.rb

Overview

Provides helper class methods for Pollex classes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inspectablesObject (readonly)

Returns the value of attribute inspectables.



31
32
33
# File 'lib/pollex/pollex_class.rb', line 31

def inspectables
  @inspectables
end

Instance Method Details

#attr_inspector(*attrs) ⇒ Object

Defines the list of attributes whose values are displayed by PollexObject#inspect.

Parameters:

  • *attrs (Array<Symbol>)

    array of attribute labels

See Also:



36
37
38
# File 'lib/pollex/pollex_class.rb', line 36

def attr_inspector(*attrs)
  @inspectables = attrs
end