Class: Concord::Public
Overview
Mixin for public attribute readers
Constant Summary
Constants inherited from Concord
Instance Attribute Summary
Attributes inherited from Concord
Instance Method Summary collapse
-
#included(descendant) ⇒ undefined
private
Hook called when module is included.
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
122 123 124 125 126 127 |
# File 'lib/concord.rb', line 122 def included(descendant) super @names.each do |name| descendant.send(:public, name) end end |