Sha256: e84d1e36c8d3df0b6a4bebd1b64a929537f1344cdafb762a850d2645d2f96167
Contents?: true
Size: 418 Bytes
Versions: 5
Compression:
Stored size: 418 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) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems