Method: Microstation::Changer#initialize
- Defined in:
- lib/microstation/changer.rb
#initialize(template, output_dir: nil, app: nil, name: nil) ⇒ Changer
Returns a new instance of Changer.
9 10 11 12 13 14 15 16 |
# File 'lib/microstation/changer.rb', line 9 def initialize(template, output_dir: nil, app: nil, name: nil) check_is_dgn(template) @template = template @template_filename = File.basename(template) @the_app = app @output_dir = output_dir || default_outdir(name) @name = name || default_name end |