Class: Flipper::Toggle
- Inherits:
-
Object
- Object
- Flipper::Toggle
- Extended by:
- Forwardable
- Defined in:
- lib/flipper/toggle.rb
Direct Known Subclasses
Flipper::Toggles::Boolean, Flipper::Toggles::Set, Flipper::Toggles::Value
Instance Attribute Summary collapse
-
#gate ⇒ Object
readonly
Returns the value of attribute gate.
Instance Method Summary collapse
- #disable(thing) ⇒ Object
- #enable(thing) ⇒ Object
-
#initialize(gate) ⇒ Toggle
constructor
A new instance of Toggle.
- #value ⇒ Object
Constructor Details
#initialize(gate) ⇒ Toggle
Returns a new instance of Toggle.
11 12 13 |
# File 'lib/flipper/toggle.rb', line 11 def initialize(gate) @gate = gate end |
Instance Attribute Details
#gate ⇒ Object (readonly)
Returns the value of attribute gate.
7 8 9 |
# File 'lib/flipper/toggle.rb', line 7 def gate @gate end |
Instance Method Details
#disable(thing) ⇒ Object
19 20 21 |
# File 'lib/flipper/toggle.rb', line 19 def disable(thing) raise 'Not implemented' end |
#enable(thing) ⇒ Object
15 16 17 |
# File 'lib/flipper/toggle.rb', line 15 def enable(thing) raise 'Not implemented' end |
#value ⇒ Object
23 24 25 |
# File 'lib/flipper/toggle.rb', line 23 def value raise 'Not implemented' end |