Merge pull request #4 from wikyd/ruby_1_8_7

Change to make compatible with Ruby 1.8.7
This commit is contained in:
Marc Remolt 2011-06-21 00:24:05 -07:00
commit ec1162fc4b

View File

@ -4,7 +4,7 @@ module Refinery
attr_reader :doc
def initialize(file_name)
file_name = File.absolute_path(file_name)
file_name = File.expand_path(file_name)
raise "Given file '#{file_name}' no file or not readable." \
unless File.file?(file_name) && File.readable?(file_name)