class Vym::YamlParser

Public Instance Methods

branch_regex() click to toggle source
# File lib/vym/yaml_parser.rb, line 14
def branch_regex
  /^(\s*)-\s+(.+):?\s*$/
end
get_level_from_size(size) click to toggle source
# File lib/vym/yaml_parser.rb, line 18
def get_level_from_size(size)
  size/2
end
main_concept_regex() click to toggle source
# File lib/vym/yaml_parser.rb, line 6
def main_concept_regex
  /\s*---\s*\n-\s+(.+):?\s*$/
end
suffix_regex() click to toggle source
# File lib/vym/yaml_parser.rb, line 10
def suffix_regex
  /\s*:\s*$/
end