Sha256: 1992c9c7a99d41057693e722d9533d59ef7e199c96f325c01a561b3edefabccc
Contents?: true
Size: 417 Bytes
Versions: 3
Compression:
Stored size: 417 Bytes
Contents
require 'typescript/rails' class Typescript::Rails::Transformer def self.instance @instance ||= new end def self.call(input) instance.call(input) end def call(input) filename = input[:filename] source = input[:data] context = input[:environment].context_class.new(input) result = ::Typescript::Rails::Compiler.compile(filename, source, context) { data: result } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
typescript-rails-0.6.2.4 | lib/typescript/rails/transformer.rb |
typescript-rails-0.6.2.3 | lib/typescript/rails/transformer.rb |
typescript-rails-0.6.2.2 | lib/typescript/rails/transformer.rb |