module Rubasteme::Parser::Utils

Public Instance Methods

ast?(obj) click to toggle source
# File lib/rubasteme/parser.rb, line 16
def ast?(obj)
  obj.kind_of?(AST::Node)
end
ast_type?(obj, type) click to toggle source
# File lib/rubasteme/parser.rb, line 20
def ast_type?(obj, type)
  ast?(obj) && obj.type == type
end
not_implemented_yet(feature) click to toggle source
# File lib/rubasteme/parser.rb, line 24
def not_implemented_yet(feature)
  raise NotImplementedYetError, feature
end