module Squirrell
Including this module gives a few convenience methods for query objects.
Constants
- VERSION
Attributes
executor[R]
permits[RW]
requires[RW]
Public Class Methods
configure() { |self| ... }
click to toggle source
# File lib/squirrell.rb, line 20 def self.configure yield self end
executor=(e)
click to toggle source
# File lib/squirrell.rb, line 12 def executor=(e) unless e.respond_to? :call fail ExecutorError, 'Executor must respond to `#call`' end @executor = e end
included(klass)
click to toggle source
# File lib/squirrell.rb, line 37 def self.included(klass) Squirrell.requires ||= {} Squirrell.requires[klass] = [] Squirrell.permits ||= {} Squirrell.permits[klass] = [] klass.extend ClassMethods klass.include InstanceMethods end