Class: Flipper::Toggle

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/flipper/toggle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#gateObject (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

#valueObject



23
24
25
# File 'lib/flipper/toggle.rb', line 23

def value
  raise 'Not implemented'
end