Class: PrivatePlease::Storage::CalledMethodsMemoryStore
- Inherits:
-
Object
- Object
- PrivatePlease::Storage::CalledMethodsMemoryStore
- Defined in:
- lib/private_please/storage/called_methods_memory_store.rb
Instance Attribute Summary collapse
-
#private_calls ⇒ Object
readonly
Returns the value of attribute private_calls.
-
#public_calls ⇒ Object
readonly
Returns the value of attribute public_calls.
Instance Method Summary collapse
- #add_private_call(value) ⇒ Object
- #add_public_call(value) ⇒ Object
-
#initialize ⇒ CalledMethodsMemoryStore
constructor
A new instance of CalledMethodsMemoryStore.
Constructor Details
#initialize ⇒ CalledMethodsMemoryStore
Returns a new instance of CalledMethodsMemoryStore.
7 8 9 10 |
# File 'lib/private_please/storage/called_methods_memory_store.rb', line 7 def initialize @public_calls = Set.new @private_calls = Set.new end |
Instance Attribute Details
#private_calls ⇒ Object (readonly)
Returns the value of attribute private_calls.
5 6 7 |
# File 'lib/private_please/storage/called_methods_memory_store.rb', line 5 def private_calls @private_calls end |
#public_calls ⇒ Object (readonly)
Returns the value of attribute public_calls.
5 6 7 |
# File 'lib/private_please/storage/called_methods_memory_store.rb', line 5 def public_calls @public_calls end |
Instance Method Details
#add_private_call(value) ⇒ Object
16 17 18 |
# File 'lib/private_please/storage/called_methods_memory_store.rb', line 16 def add_private_call(value) @private_calls.add value end |
#add_public_call(value) ⇒ Object
12 13 14 |
# File 'lib/private_please/storage/called_methods_memory_store.rb', line 12 def add_public_call(value) @public_calls .add value end |