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
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 |