Class: Radiosonde::DSL::Converter
- Inherits:
-
Object
- Object
- Radiosonde::DSL::Converter
- Defined in:
- lib/radiosonde/dsl/converter.rb
Class Method Summary collapse
Instance Method Summary collapse
- #convert ⇒ Object
-
#initialize(exported, options = {}) ⇒ Converter
constructor
of class methods.
Constructor Details
#initialize(exported, options = {}) ⇒ Converter
of class methods
10 11 12 13 |
# File 'lib/radiosonde/dsl/converter.rb', line 10 def initialize(exported, = {}) @exported = exported @options = end |
Class Method Details
.convert(exported, opts = {}) ⇒ Object
5 6 7 |
# File 'lib/radiosonde/dsl/converter.rb', line 5 def convert(exported, opts = {}) self.new(exported, opts).convert end |
Instance Method Details
#convert ⇒ Object
15 16 17 18 19 |
# File 'lib/radiosonde/dsl/converter.rb', line 15 def convert @exported.each.map {|alarm_name, alarm_attrs| output_alarm(alarm_name, alarm_attrs) }.join("\n") end |