Module: FigLeaf
- Defined in:
- lib/fig_leaf.rb
Overview
Tools for making inherited interfaces private to a class.
Defined Under Namespace
Modules: Macros
Class Method Summary collapse
Class Method Details
.clothe(other) ⇒ Object
70 71 72 |
# File 'lib/fig_leaf.rb', line 70 def self.clothe(other) other.extend(Macros) end |
.extended(object) ⇒ Object
79 80 81 |
# File 'lib/fig_leaf.rb', line 79 def self.extended(object) clothe(object.singleton_class) end |
.included(other) ⇒ Object
74 75 76 77 |
# File 'lib/fig_leaf.rb', line 74 def self.included(other) clothe(other) other.singleton_class.extend(Macros) end |