Class: Flipper::Types::Group
- Inherits:
-
Flipper::Type
- Object
- Flipper::Type
- Flipper::Types::Group
- Defined in:
- lib/flipper/types/group.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Flipper::Type
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, &block) ⇒ Group
constructor
A new instance of Group.
- #match?(*args) ⇒ Boolean
Methods inherited from Flipper::Type
Constructor Details
#initialize(name, &block) ⇒ Group
Returns a new instance of Group.
11 12 13 14 15 |
# File 'lib/flipper/types/group.rb', line 11 def initialize(name, &block) @name = name.to_sym @value = @name @block = block end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/flipper/types/group.rb', line 9 def name @name end |
Class Method Details
Instance Method Details
#match?(*args) ⇒ Boolean
17 18 19 |
# File 'lib/flipper/types/group.rb', line 17 def match?(*args) @block.call(*args) end |