Module: Montrose::Rule::ClassMethods

Defined in:
lib/montrose/rule.rb

Instance Method Summary collapse

Instance Method Details

#apply_option(_opts) ⇒ Object



41
42
43
# File 'lib/montrose/rule.rb', line 41

def apply_option(_opts)
  nil
end

#apply_options?(opts) ⇒ Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/montrose/rule.rb', line 45

def apply_options?(opts)
  apply_options(opts)
end

#from_options(opts) ⇒ Object



49
50
51
# File 'lib/montrose/rule.rb', line 49

def from_options(opts)
  new(apply_options(opts)) if apply_options?(opts)
end