lib/spandx/license.rb in spandx-0.1.7 vs lib/spandx/license.rb in spandx-0.2.0
- old
+ new
@@ -59,10 +59,14 @@
def reference_number=(value)
attributes[:referenceNumber] = value
end
def content
- @content ||= Content.new(Spandx.db.read("text/#{id}.txt"))
+ @content ||= Content.new(raw_content)
+ end
+
+ def raw_content
+ @raw_content ||= (Spandx.db.read("text/#{id}.txt") || '')
end
def <=>(other)
id <=> other.id
end