Sha256: 66a965fd5dae90921f6ffa8ce9981ad61c4a2c42306dcb534ab94b6ae7f6a437

Contents?: true

Size: 210 Bytes

Versions: 1

Compression:

Stored size: 210 Bytes

Contents

module Flippeur
  class Feature
    attr_reader :name, :block

    def initialize(name, &block)
      @name = name
      @block = block
    end

    def available?(user)
      block.call user
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flippeur-1.0.0 lib/flippeur/feature.rb