Class: Unparser::Concord::Public

Inherits:
Unparser::Concord show all
Defined in:
lib/unparser/concord.rb

Overview

Mixin for public attribute readers

Constant Summary

Constants inherited from Unparser::Concord

MAX_NR_OF_OBJECTS

Instance Attribute Summary

Attributes inherited from Unparser::Concord

#names

Instance Method Summary collapse

Instance Method Details

#included(descendant) ⇒ undefined

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Hook called when module is included

Parameters:

  • descendant (Class, Module)

Returns:

  • (undefined)


107
108
109
110
111
# File 'lib/unparser/concord.rb', line 107

def included(descendant)
  names.each do |name|
    descendant.__send__(:public, name)
  end
end