Class: Togls::NullToggle
Instance Attribute Summary
Attributes inherited from Toggle
Instance Method Summary collapse
-
#initialize ⇒ NullToggle
constructor
A new instance of NullToggle.
- #off ⇒ Object
- #on ⇒ Object
Methods inherited from Toggle
Constructor Details
#initialize ⇒ NullToggle
Returns a new instance of NullToggle.
3 4 5 6 |
# File 'lib/togls/null_toggle.rb', line 3 def initialize feature = Togls::Feature.new("null", "the official null feature") super(feature) end |
Instance Method Details
#off ⇒ Object
12 13 14 |
# File 'lib/togls/null_toggle.rb', line 12 def off self end |
#on ⇒ Object
8 9 10 |
# File 'lib/togls/null_toggle.rb', line 8 def on self end |