Merge pull request #4 from wikyd/ruby_1_8_7
Change to make compatible with Ruby 1.8.7
This commit is contained in:
		
						commit
						ec1162fc4b
					
				@ -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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user