Class: SlnProject::SolutionPropertiesBlock

Inherits:
GlobalSectionBlock show all
Defined in:
lib/fastlane/plugin/sapfire/sln_project/global_block.rb

Constant Summary

Constants inherited from GlobalSectionBlock

GlobalSectionBlock::TYPES

Instance Attribute Summary collapse

Attributes inherited from GlobalSectionBlock

#type

Instance Method Summary collapse

Methods inherited from GlobalSectionBlock

#initialize

Constructor Details

This class inherits a constructor from SlnProject::GlobalSectionBlock

Instance Attribute Details

#entriesObject

Returns the value of attribute entries.



126
127
128
# File 'lib/fastlane/plugin/sapfire/sln_project/global_block.rb', line 126

def entries
  @entries
end

Instance Method Details

#parse(block_str) ⇒ Object



128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/fastlane/plugin/sapfire/sln_project/global_block.rb', line 128

def parse(block_str)
  is_header = false
  content_reader = StringIO.new(block_str)
  self.entries = {}

  content_reader.each_line do |line|
    unless is_header
      is_header = true
      next
    end

    assignment = Assignment.new(line)
    self.entries[assignment.key] = assignment.value
  end
end