module Get::RunMethods

Constants

ALL_CLASS_REGEX

Public Instance Methods

options_allowed() click to toggle source
# File lib/get/run_methods.rb, line 14
def options_allowed
  raise ::Get::Errors::OptionsNotPermitted.new("Options not supported with 'All' queries") if self.to_s.match(ALL_CLASS_REGEX)
end
run(*context) click to toggle source
# File lib/get/run_methods.rb, line 4
def run(*context)
  options_allowed if context.present?
  new(*context).run
end
run!(*context) click to toggle source
# File lib/get/run_methods.rb, line 9
def run!(*context)
  options_allowed if context
  new(*context).run!
end