Class: Metanorma::Cli::Compiler

Inherits:
Object
  • Object
show all
Defined in:
lib/metanorma/cli/compiler.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, options) ⇒ Compiler

Returns a new instance of Compiler.



4
5
6
7
8
# File 'lib/metanorma/cli/compiler.rb', line 4

def initialize(file, options)
  @file = file
  @options = options
  normalize_special_options
end

Class Method Details

.compile(file, options) ⇒ Object



14
15
16
# File 'lib/metanorma/cli/compiler.rb', line 14

def self.compile(file, options)
  new(file, options).compile
end

Instance Method Details

#compileObject



10
11
12
# File 'lib/metanorma/cli/compiler.rb', line 10

def compile
  compile_file
end