Module: ES6ModuleTranspiler
- Defined in:
- lib/es6_module_transpiler/rails.rb,
lib/es6_module_transpiler/rails/version.rb
Defined Under Namespace
Modules: Rails
Class Method Summary collapse
- .compile_to ⇒ Object
- .compile_to=(target) ⇒ Object
- .prefix_pattern ⇒ Object
- .prefix_pattern=(pattern) ⇒ Object
Class Method Details
.compile_to ⇒ Object
6 7 8 |
# File 'lib/es6_module_transpiler/rails.rb', line 6 def self.compile_to @compile_to || :amd end |
.compile_to=(target) ⇒ Object
10 11 12 |
# File 'lib/es6_module_transpiler/rails.rb', line 10 def self.compile_to=(target) @compile_to = target end |
.prefix_pattern ⇒ Object
14 15 16 |
# File 'lib/es6_module_transpiler/rails.rb', line 14 def self.prefix_pattern @prefix_pattern || [] end |
.prefix_pattern=(pattern) ⇒ Object
18 19 20 |
# File 'lib/es6_module_transpiler/rails.rb', line 18 def self.prefix_pattern=(pattern) @prefix_pattern = pattern end |