Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/tidy/compile.rb
Instance Method Summary collapse
Instance Method Details
#to_flex_arguments ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/tidy/compile.rb', line 2 def to_flex_arguments map{ |key, value| key = key.to_s.gsub("_","-") if (value.class == Array) value.map{|v| "-#{key}=#{v}" }.join(" ") else "-#{key}=#{value}" end }.join(" ") end |