Class: Concord::Public

Inherits:
Concord
  • Object
show all
Defined in:
lib/concord.rb

Overview

Mixin for public attribute readers

Constant Summary

Constants inherited from Concord

MAX_NR_OF_OBJECTS

Instance Attribute Summary

Attributes inherited from 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)

115
116
117
118
119
120
# File 'lib/concord.rb', line 115

def included(descendant)
  super
  @names.each do |name|
    descendant.send(:public, name)
  end
end