class CssParser::MarmaraParser
Attributes
last_file_contents[R]
Public Instance Methods
read_remote_file(uri)
click to toggle source
Calls superclass method
# File lib/marmara/parser.rb, line 7 def read_remote_file(uri) if Gem.win_platform? && uri.scheme == 'file' && uri.path =~ /^\/[a-zA-Z]:\/[a-zA-Z]:\// # file scheme seems to be broken for windows, do some fixing uri.path = uri.path.gsub(/^\/[a-zA-Z]:\/([a-zA-Z]:\/.*)$/, '\1') end # save the output result = super(uri) @last_file_contents = result.first return result end