Class: Neutron::Valac
- Inherits:
-
Object
- Object
- Neutron::Valac
- Defined in:
- lib/neutron/valac.rb
Class Method Summary collapse
Class Method Details
.compile(*files, **opts) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/neutron/valac.rb', line 4 def self.compile(*files, **opts) o = { prog: 'valac', debug: false, args: '' }.merge(opts) files.each do |file| Neutron.execute("#{o[:prog]} -c #{file} #{'-X g' if o[:debug]} #{o[:args]}", must_success: true) end end |