module AutoQuery

Public Instance Methods

method_missing(method_name, *args, &block) click to toggle source
Calls superclass method
# File lib/docusign/extensions.rb, line 56
def method_missing(method_name, *args, &block)
  string_name = method_name.to_s
  
  if (string_name =~ /\?$/) && respond_to?(string_name.gsub(/\?/, ''))
    self.class.class_eval %Q{
      def #{string_name}(*args, &block)
        !! (send "#{string_name.gsub(/\?/, '')}", *args, &block)
      end
    }
    
    send method_name, *args, &block
  else
    super
  end
end