Class: NestedText::Line

Inherits:
Object
  • Object
show all
Defined in:
lib/nestedtext/scanners.rb

Constant Summary collapse

ALLOWED_LINE_TAGS =
[
  :comment, # a comment
  :blank,
  :list_item,  # - item
  :dict_item,  # key: value (or value on next line)
  :string_item, # > a string, can continue next line
  :key_item,    # : key on a line
  :inline_dict, # {key1: value1, key2: value2}
  :inline_list, # [value1, value2]
  :unrecognized # could not be determined
].freeze