Module: TypeScript::Src

Defined in:
lib/typescript-src.rb

Class Method Summary collapse

Class Method Details

.js_contentObject



16
17
18
# File 'lib/typescript-src.rb', line 16

def js_content
  File.read(js_path)
end

.js_pathObject



12
13
14
# File 'lib/typescript-src.rb', line 12

def js_path
  root + "/lib/support/typescript.js"
end

.rootObject



4
5
6
# File 'lib/typescript-src.rb', line 4

def root
  File.expand_path("..", File.dirname(__FILE__))
end

.tsc_pathObject



8
9
10
# File 'lib/typescript-src.rb', line 8

def tsc_path
  root + "/lib/support/tsc"
end