Module: OracleSqlParser::Grammar::Condition::Between::BetweenCondition2

Defined in:
lib/oracle-sql-parser/grammar/condition/between.rb

Instance Method Summary collapse

Instance Method Details

#astObject



65
66
67
68
69
70
71
72
# File 'lib/oracle-sql-parser/grammar/condition/between.rb', line 65

def ast
  OracleSqlParser::Ast::BetweenCondition[
    :target => target.ast,
    :not => not_keyword.ast,
    :from => from.ast,
    :to => to.ast
  ]
end

#not_keywordObject



74
75
76
# File 'lib/oracle-sql-parser/grammar/condition/between.rb', line 74

def not_keyword
  n.elements && n.elements.first
end