Add accessor methods.

This commit is contained in:
Jakob Rath 2013-12-16 23:51:17 +01:00 committed by Dan Hirsch
parent a302953dfd
commit d343b0c8f0
2 changed files with 53 additions and 1 deletions

View file

@ -40,5 +40,9 @@ parser =
# }
# }
#}
$r = parser.parse 'abcdefgh'
p $r[:ast][:data][:seq].elements.map {|e| e[:data][:uint]}
# or:
p $r.ast.data.map(&:data)