Class: Jeka::Analysis::CompilerOption

Inherits:
Object
  • Object
show all
Includes:
DataMapper::Resource
Defined in:
lib/jeka/analysis/compiler_option.rb

Class Method Summary collapse

Class Method Details

.convert(hash) ⇒ Object



12
13
14
15
16
17
18
19
20
21
# File 'lib/jeka/analysis/compiler_option.rb', line 12

def self.convert(hash)
  opt = []
  hash.each do |key, value|
    opt << CompilerOption.new(
      name: key,
      value: value
    )
  end
  opt
end