Module: Lydown::Parsing::Command::Argument
- Defined in:
- lib/lydown/parsing/nodes.rb
Instance Method Summary collapse
Instance Method Details
#to_stream(cmd, opts) ⇒ Object
347 348 349 350 351 352 353 354 355 356 357 358 359 360 |
# File 'lib/lydown/parsing/nodes.rb', line 347 def to_stream(cmd, opts) if text_value =~ /^"(.+)"$/ value = $1.unescape else value = text_value end if cmd[:type] == :setting cmd[:value] = value else cmd[:arguments] ||= [] cmd[:arguments] << value end end |