lib/ole/property_set.rb in ruby-ole-1.2.4 vs lib/ole/property_set.rb in ruby-ole-1.2.5

- old
+ new

@@ -119,11 +119,11 @@ @guid = Clsid.load @guid @os = OS_MAP[@os_id] || Log.warn("unknown operating system id #{@os_id}") end def load_section_list str - @sections = str.scan(/.{#{Section::SIZE}}/m).map { |str| Section.new str, self } + @sections = str.scan(/.{#{Section::SIZE}}/m).map { |s| Section.new s, self } end end end class Storage @@ -157,11 +157,11 @@ # this will maybe get wrapped up as # section = propset[guid] # maybe taking it one step further, i'd hide the section thing, # and let you use composite keys, like # propset[4, guid] eg in MAPI, and just propset.doc_author. - section = sections.find do |section| - section.guid == Types::PropertySet::FMTID_SummaryInformation + section = sections.find do |s| + s.guid == Types::PropertySet::FMTID_SummaryInformation end return PropertySetSectionProxy.new(dirent, sections.index(section)) end end