Methods
Class Public methods
# File railties/lib/rails/rack/log_tailer.rb, line 4 4: def initialize(app, log = nil) 5: @app = app 6: 7: path = Pathname.new(log || "#{::File.expand_path(Rails.root)}/log/#{Rails.env}.log").cleanpath 8: 9: @cursor = @file = nil 10: if ::File.exists?(path) 11: @cursor = ::File.size(path) 12: @file = ::File.open(path, 'r') 13: end 14: end
Instance Public methods