class Reloadlive::Frontend
Constants
- STATIC
Public Instance Methods
last()
click to toggle source
# File lib/reloadlive/frontend.rb, line 25 def last last_file_changed = Reloadlive.last_file_changed body = "Save your document" title = "Reloadlive" if last_file_changed render = Reloadlive::Render.new(File.basename(last_file_changed), File.read(last_file_changed)) body = render.formatted_data title = render.title end puts "PUSH " + File.basename(last_file_changed) { body: body, title: title} end