lib/semi/variable.rb in semi-0.4.0 vs lib/semi/variable.rb in semi-0.5.0

- old
+ new

@@ -18,10 +18,10 @@ 'integer' => Semi::Variables::Integer, 'string' => Semi::Variables::String, } def self.import(val, hints=nil) # If hints have been supplied, try to create from them - if not hints.nil? + unless hints.nil? hints = [hints].flatten.select {|h| @@var_types.include? h } if hints.count > 0 return @@var_types[hints[0]].new(val) end end