lib/spandx/license.rb in spandx-0.1.5 vs lib/spandx/license.rb in spandx-0.1.6
- old
+ new
@@ -57,7 +57,19 @@
end
def reference_number=(value)
attributes[:referenceNumber] = value
end
+
+ def content
+ @content ||= Content.new(Spandx.db.read("text/#{id}.txt"))
+ end
+
+ def <=>(other)
+ id <=> other.id
+ end
+
+ def to_s
+ id
+ end
end
end