Module: Shackles::HelperMethods
- Defined in:
- lib/shackles/helper_methods.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 |
# File 'lib/shackles/helper_methods.rb', line 3 def self.included(base) base.singleton_class.include(ClassMethods) # call shackle_class_method on the class itself, which then calls shackle_method on the singleton_class base.singleton_class.singleton_class.include(ClassMethods) end |