Sha256: f53e37bee32b1aa688b926623d10a3c7ba4eeab023cbbfec05a9d29d44236937

Contents?: true

Size: 236 Bytes

Versions: 1

Compression:

Stored size: 236 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.1.0 lib/tarquinn/condition/method_caller.rb