Module: T::Props::Private::Parse
- Included in:
- GeneratedCodeValidation
- Defined in:
- lib/types/props/private/parser.rb
Instance Method Summary collapse
Instance Method Details
#parse(source) ⇒ Object
7 8 9 10 |
# File 'lib/types/props/private/parser.rb', line 7 def parse(source) @current_ruby ||= require_parser(:CurrentRuby) @current_ruby.parse(source) end |
#s(type, *children) ⇒ Object
12 13 14 15 |
# File 'lib/types/props/private/parser.rb', line 12 def s(type, *children) @node ||= require_parser(:AST, :Node) @node.new(type, children) end |