module Methods::MethodWithoutArgs

Public Class Methods

included(base) click to toggle source
# File lib/methods/method_without_args.rb, line 13
def self.included(base)
  base.extend(ClassMethods)
end

Public Instance Methods

method(*args) click to toggle source
Calls superclass method
# 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