Sha256: 21da3ba63a89b45862eb9a87b9df44ec03aa03f4f1a9330df9f6dfc9a12cc625

Contents?: true

Size: 212 Bytes

Versions: 1

Compression:

Stored size: 212 Bytes

Contents

module Seory
  module PageCondition
    class BlockCondition
      def initialize(block)
        @block = block
      end

      def match?(controller)
        @block.call(controller)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
seory-0.0.4 lib/seory/page_condition/block_condition.rb