lib/licensee/license_file.rb in licensee-0.1.0 vs lib/licensee/license_file.rb in licensee-0.1.1
- old
+ new
@@ -10,10 +10,10 @@
attr_reader :path
attr_accessor :contents
def initialize(path=nil)
- @path = File.expand_path(path)
+ @path = File.expand_path(path) unless path.nil?
end
def contents
@contents ||= File.open(path).read
end