Method: LEWT::LEWTLedger#parse_meta_tags

Defined in:
lib/lewt_ledger.rb

#parse_meta_tags(field_key) ⇒ Object

parses a field on this object for meta data. Meta data can be embedded inside the ledger fields as a string by prefixing it with the ‘#’ symbol. If you assign a value to the meta field with the ‘=’ symbol, its value will be interpreted as a number. ie:

#good-pay // true
#happiness=6/10 // Rational(6,10)
field_key [Symbol]

the ledger key you wish to parse as a symbol.



66
67
68
69
70
# File 'lib/lewt_ledger.rb', line 66

def parse_meta_tags ( field_key )
  value = self[field_key]
  tags = parse_tags value
  return tags
end