Module: Acv2lrtemplate

Defined in:
lib/acv2lrtemplate.rb,
lib/acv2lrtemplate/cli.rb,
lib/acv2lrtemplate/parser.rb,
lib/acv2lrtemplate/exporter.rb,
lib/acv2lrtemplate/identity.rb,
lib/acv2lrtemplate/validator.rb,
lib/acv2lrtemplate/errors/base.rb,
lib/acv2lrtemplate/json2lrtemplate.rb,
lib/acv2lrtemplate/errors/validator/no_present_file.rb,
lib/acv2lrtemplate/errors/validator/no_file_provided.rb,
lib/acv2lrtemplate/errors/exporter/curves_data_invalid.rb,
lib/acv2lrtemplate/errors/exporter/no_filename_provided.rb,
lib/acv2lrtemplate/errors/validator/invalid_file_extension.rb

Defined Under Namespace

Modules: Errors, Identity Classes: CLI, Exporter, JSON2lrtemplate, Parser, Validator

Class Method Summary collapse

Class Method Details

.convert!(filename, export_name = nil) ⇒ Object



12
13
14
15
# File 'lib/acv2lrtemplate.rb', line 12

def self.convert!(filename, export_name = nil)
  @parsed = Acv2lrtemplate::Parser.new(filename)
  Acv2lrtemplate::Exporter.new(@parsed.curves, @parsed.acv_file, export_name).export!
end

.libObject



21
22
23
# File 'lib/acv2lrtemplate.rb', line 21

def self.lib
  File.join(root, 'lib')
end

.rootObject



17
18
19
# File 'lib/acv2lrtemplate.rb', line 17

def self.root
  File.dirname __dir__
end

.specObject



25
26
27
# File 'lib/acv2lrtemplate.rb', line 25

def self.spec
  File.join(root, 'spec')
end