Class: Metanorma::Cli::Collection
- Inherits:
-
Object
- Object
- Metanorma::Cli::Collection
- Defined in:
- lib/metanorma/cli/collection.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file, options) ⇒ Collection
constructor
A new instance of Collection.
- #render ⇒ Object
Constructor Details
#initialize(file, options) ⇒ Collection
Returns a new instance of Collection.
6 7 8 9 10 11 |
# File 'lib/metanorma/cli/collection.rb', line 6 def initialize(file, ) @file = file @options = Cli.with_indifferent_access() @output_dir = @options.delete(:output_dir) @compile_options = @options.delete(:compile) end |
Class Method Details
.render(filename, options = {}) ⇒ Object
13 14 15 |
# File 'lib/metanorma/cli/collection.rb', line 13 def self.render(filename, = {}) new(filename, ).render end |
Instance Method Details
#render ⇒ Object
17 18 19 20 |
# File 'lib/metanorma/cli/collection.rb', line 17 def render collection_file.render(.compact) end |