Class: Flop::Repository::Memory
- Inherits:
-
Object
- Object
- Flop::Repository::Memory
- Defined in:
- lib/flop/repository/memory.rb
Instance Method Summary collapse
- #get(name) ⇒ Object
-
#initialize ⇒ Memory
constructor
A new instance of Memory.
- #set(name, value) ⇒ Object
Constructor Details
#initialize ⇒ Memory
Returns a new instance of Memory.
4 5 6 |
# File 'lib/flop/repository/memory.rb', line 4 def initialize @features = Hash.new(false) end |
Instance Method Details
#get(name) ⇒ Object
8 9 10 |
# File 'lib/flop/repository/memory.rb', line 8 def get(name) @features[name] end |
#set(name, value) ⇒ Object
12 13 14 |
# File 'lib/flop/repository/memory.rb', line 12 def set(name, value) @features[name] = value end |