Code Duplication    Length = 5-5 lines in 2 locations

lib/jsondoc/document.rb 2 locations

@@ 187-191 (lines=5) @@
184
      aVals
185
    end
186
187
    def getDescStringForProperties(aCols = nil,sDelimiter = "\t")
188
      sDelimiter = "\t" unless sDelimiter.is_a?(String) && sDelimiter.length>0
189
      aVals = self.getDescArrayForProperties(aCols)
190
      aVals.join(sDelimiter)
191
    end
192
193
    def getDescArrayForProperties(aCols = nil)
194
      aVals = []
@@ 163-167 (lines=5) @@
160
      JSON.dump( self.asHash() )
161
    end
162
163
    def getValStringForProperties(aCols = nil, sDelimiter = "\t")
164
      sDelimiter = "\t" unless sDelimiter.is_a?(String) && sDelimiter.length>0
165
      aVals = self.getValArrayForProperties(aCols)
166
      return aVals.join(sDelimiter)
167
    end
168
169
    def getValArrayForProperties(aCols = nil, xxNil = '')
170
      aVals = []