Module: Methods::MethodWithoutArgs
- Defined in:
- lib/methods/method_without_args.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
13 14 15 |
# File 'lib/methods/method_without_args.rb', line 13 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#method(*args) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/methods/method_without_args.rb', line 17 def method(*args) if args.empty? Methods::MethodsWrapper.new(self, Methods.configuration) else super end end |