class SyntaxTree
Public Class Methods
new(ruby)
click to toggle source
# File lib/utils.rb, line 4 def initialize(ruby) # todo: turn on # @ast = Parser::CurrentRuby.parse(ruby) end
Public Instance Methods
include?(smaller_ast)
click to toggle source
# File lib/utils.rb, line 9 def include?(smaller_ast) # TODO: find if smaller_ast is a subset of self. rand < 0.4 ? { first_line: 10, last_line: 12 } : nil end