Class: CocoaPods::AppGroup::Store
- Inherits:
-
Object
- Object
- CocoaPods::AppGroup::Store
- Defined in:
- lib/cocoapods/app_group/store.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path = default_root) ⇒ Store
constructor
A new instance of Store.
- #read(name) ⇒ Object
- #write(name, value) ⇒ Object
Constructor Details
#initialize(path = default_root) ⇒ Store
8 9 10 |
# File 'lib/cocoapods/app_group/store.rb', line 8 def initialize(path = default_root) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/cocoapods/app_group/store.rb', line 6 def path @path end |
Instance Method Details
#read(name) ⇒ Object
12 13 14 |
# File 'lib/cocoapods/app_group/store.rb', line 12 def read(name) table[name.to_s] end |
#write(name, value) ⇒ Object
16 17 18 |
# File 'lib/cocoapods/app_group/store.rb', line 16 def write(name, value) saving { table[name.to_s] = value } end |