Sha256: 5ce8f80607ee1cf5d5f610f0b5830aee3b1dde5d2b502795cf350514eafd4d12
Contents?: true
Size: 234 Bytes
Versions: 1
Compression:
Stored size: 234 Bytes
Contents
class Tarquinn::Condition::MethodCaller attr_accessor :methods def initialize(methods) @methods = [methods].flatten end def check?(controller) methods.any? do |method| controller.call(method) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tarquinn-0.2.0 | lib/tarquinn/condition/method_caller.rb |