In Files

Class/Module Index [+]

Quicksearch

Eco::Source

Public Class Methods

combined_contents() click to toggle source
# File lib/eco.rb, line 20
def self.combined_contents
  [CoffeeScript::Source.contents, contents].join(";\n")
end
contents() click to toggle source
# File lib/eco.rb, line 16
def self.contents
  @contents ||= File.read(path)
end
context() click to toggle source
# File lib/eco.rb, line 28
def self.context
  @context ||= ExecJS.compile(combined_contents)
end
path() click to toggle source
# File lib/eco.rb, line 7
def self.path
  @path ||= ENV["ECO_SOURCE_PATH"] || bundled_path
end
path=(path) click to toggle source
# File lib/eco.rb, line 11
def self.path=(path)
  @contents = @version = @context = nil
  @path = path
end
version() click to toggle source
# File lib/eco.rb, line 24
def self.version
  @version ||= contents[/Eco Compiler v(.*?)\s/, 1]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.