Sha256: 235768dd4195e2169cf945dc4c742c94e93252b4549dc47265ebf8a92c78ab8c
Contents?: true
Size: 324 Bytes
Versions: 10
Compression:
Stored size: 324 Bytes
Contents
class Detour::DefinedGroup attr_reader :name alias :id :name def initialize(name, test) @name = name.to_s @test = test end def to_s name end def test(arg) @test.call(arg) end def self.by_type(type) Detour.config.defined_groups.fetch(type.to_s, {}).with_indifferent_access end end
Version data entries
10 entries across 10 versions & 1 rubygems