Module: OrgParse::InlineUtils

Included in:
StructParser, StructScanner
Defined in:
lib/org-parse/inline-parser.rb

Constant Summary collapse

@@inline_parser =
nil

Instance Method Summary collapse

Instance Method Details

#line_parse(str) ⇒ Object



208
209
210
211
# File 'lib/org-parse/inline-parser.rb', line 208

def line_parse(str)
  @@inline_parser = InlineParser.new if @@inline_parser.nil?
  @@inline_parser.parse(str)
end

#set_struct_parser(sp) ⇒ Object



213
214
215
216
# File 'lib/org-parse/inline-parser.rb', line 213

def set_struct_parser(sp)
  @@inline_parser = InlineParser.new if @@inline_parser.nil?
  @@inline_parser.structp = sp
end