module Sprockets::DartTemplate::Dart::Dart2Js
Public Class Methods
command()
click to toggle source
# File lib/sprockets_dart.rb, line 9 def self.command; "dart2js" end
exec(input_path, output_path)
click to toggle source
# File lib/sprockets_dart.rb, line 10 def self.exec(input_path, output_path) stdout = `#{command} --out=#{output_path} #{input_path}` return stdout, $?.success? end