Module: EmberScript::Source
- Defined in:
- lib/ember_script.rb
Class Method Summary collapse
Class Method Details
.contents ⇒ Object
16 17 18 |
# File 'lib/ember_script.rb', line 16 def self.contents @contents ||= File.read(path) end |
.context ⇒ Object
24 25 26 |
# File 'lib/ember_script.rb', line 24 def self.context @context ||= ExecJS.compile(contents) end |
.path ⇒ Object
12 13 14 |
# File 'lib/ember_script.rb', line 12 def self.path @path ||= ENV['EMBERSCRIPT_SOURCE_PATH'] || bundled_path end |