Skip to content

jrobertson/rowkvx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introducing the rowkvx

require 'rowkvx'

s = "
ruby: Time.now
snippet:
  var n = new Date().toUTCString();
  var n = new Date().toUTCString();
exact_match: false
notes: foo
resources:
  https://www.w3schools.com/jsref/jsref_toutcstring.asp
  https://www.w3schools.com/jsref/jsref_toutcstring2.asp
tags: date time

ruby: Date.now
snippet:
  var n = new Date().toUTCString();
  var n = new Date().toUTCString();
exact_match: false
notes: 
resources:
  https://www.w3schools.com/jsref/jsref_toutcstring.asp
  https://www.w3schools.com/jsref/jsref_toutcstring2.asp
tags: date time
"

rkvx = RowKvx.new(s)
rkvx.to_a

In the above example the text is parsed using the RowKvx gem which returns an Array object containing 2 Hash objects, each representing a parsed record or row.

Resources

rowkvx rowx kvx gem

About

Parses rows of Kvx plain text.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages