Sha256: d0d21a1590aaa025ef242d9ba29e3e08c6d6a06a53239585c0b849d5e18a5ca2
Contents?: true
Size: 426 Bytes
Versions: 9
Compression:
Stored size: 426 Bytes
Contents
module Flipper module Types class Group < Type def self.wrap(group_or_name) return group_or_name if group_or_name.is_a?(self) Flipper.group(group_or_name) end attr_reader :name def initialize(name, &block) @name = name.to_sym @value = @name @block = block end def match?(*args) @block.call(*args) == true end end end end
Version data entries
9 entries across 9 versions & 1 rubygems