module Esperanto::Source
Constants
- VERSION
Public Class Methods
bundled_path_for(filename)
click to toggle source
# File lib/esperanto/source.rb, line 6 def bundled_path_for(filename) File.expand_path("../../../vendor/#{filename}", __FILE__) end
bundled_paths()
click to toggle source
# File lib/esperanto/source.rb, line 10 def bundled_paths %w( base64.js esperanto.browser.js ).map {|js| bundled_path_for(js) } end
bundled_source()
click to toggle source
# File lib/esperanto/source.rb, line 17 def bundled_source 'var window = this; ' + bundled_paths.map {|path| File.read(path) }.join end