class OracleSqlParser::Grammar::ReservedWordGenerator::MatchKeyword
Attributes
rule_name[R]
Public Class Methods
new(rule_name)
click to toggle source
# File lib/oracle-sql-parser/grammar/reserved_word_generator.rb, line 49 def initialize(rule_name) @rule_name = rule_name end
Public Instance Methods
to_s()
click to toggle source
# File lib/oracle-sql-parser/grammar/reserved_word_generator.rb, line 53 def to_s content = [] content << " rule #{rule_name}" content << " [a-zA-Z0-9_]+ ![a-zA-Z0-9] &{|w| #{self.to_a.to_s}.include? w.first.text_value.upcase}" content << " end" content.join("\n") end