Class: Lydown::Translation::Ripple::NamedMacro::Stop

Inherits:
Root
  • Object
show all
Defined in:
lib/lydown/translation/ripple/nodes.rb

Instance Method Summary collapse

Methods inherited from Root

#_translate, #check_line_break, #source_line

Instance Method Details

#translate(stream, opts) ⇒ Object



191
192
193
194
195
196
197
# File 'lib/lydown/translation/ripple/nodes.rb', line 191

def translate(stream, opts)
  if opts[:current_macro]
    if opts[:current_macro] =~ /([0-9]+\.*)[^0-9]*$/
      opts[:post_macro_value] = $1
    end
  end
end