Class: XcodeArchiveCache::BuildSettings::Container
- Inherits:
-
Object
- Object
- XcodeArchiveCache::BuildSettings::Container
- Defined in:
- lib/build_settings/loader.rb
Instance Attribute Summary collapse
- #all ⇒ Hash{String => String} readonly
- #filtered ⇒ Hash{String => String} readonly
Instance Method Summary collapse
- #==(other) ⇒ Object
- #[](name) ⇒ Object
- #filtered_to_string ⇒ String
-
#initialize(all, filtered) ⇒ Container
constructor
A new instance of Container.
Constructor Details
#initialize(all, filtered) ⇒ Container
Returns a new instance of Container.
27 28 29 30 |
# File 'lib/build_settings/loader.rb', line 27 def initialize(all, filtered) @all = all @filtered = filtered end |
Instance Attribute Details
#all ⇒ Hash{String => String} (readonly)
18 19 20 |
# File 'lib/build_settings/loader.rb', line 18 def all @all end |
#filtered ⇒ Hash{String => String} (readonly)
22 23 24 |
# File 'lib/build_settings/loader.rb', line 22 def filtered @filtered end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 |
# File 'lib/build_settings/loader.rb', line 36 def ==(other) other && other.all == all && other.filtered == filtered end |
#[](name) ⇒ Object
32 33 34 |
# File 'lib/build_settings/loader.rb', line 32 def [](name) all[name] end |
#filtered_to_string ⇒ String
42 43 44 |
# File 'lib/build_settings/loader.rb', line 42 def filtered_to_string filtered.map {|name, value| "#{name} = #{value}"}.join("\n") end |