module CoffeeReact::Source

Public Class Methods

context(filename) click to toggle source
# File lib/coffee_react.rb, line 14
def self.context(filename)
  ExecJS.compile(File.read(self.path(filename)))
end
jstransform_context() click to toggle source
# File lib/coffee_react.rb, line 22
def self.jstransform_context
  @jstransform_context ||= self.context('js-syntax-transform.js')
end
path(filename) click to toggle source
# File lib/coffee_react.rb, line 10
def self.path(filename)
  File.expand_path("../#{filename}", File.dirname(__FILE__))
end
transform_context() click to toggle source
# File lib/coffee_react.rb, line 18
def self.transform_context
  @transform_context ||= self.context('coffee-react-transform.js')
end