Skip to content

Instantly share code, notes, and snippets.

@colorbox
Created May 16, 2018 14:57
Embed
What would you like to do?
require 'parser/current'
str = <<-FOO
def hoge
# this is comment
pp"this is test"
end
FOO
Parser::CurrentRuby.parse_with_comments str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment