Class: PrivatePlease::Storage::CalledMethodsMemoryStore

Inherits:
Object
  • Object
show all
Defined in:
lib/private_please/storage/called_methods_memory_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCalledMethodsMemoryStore

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_callsObject (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_callsObject (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