Add accessor methods.
This commit is contained in:
parent
a302953dfd
commit
d343b0c8f0
2 changed files with 53 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue