class DDQL::TokenType::Integer

Public Class Methods

new() click to toggle source
Calls superclass method DDQL::TokenType::Literal::new
# File lib/ddql/token_type.rb, line 142
def initialize
  super(name: :integer, pattern: /'(?!['0])(?>[+-]?)(\d+)'/)
  @value_transformer = -> (s) { s.to_i }
end

Public Instance Methods

data_type() click to toggle source
# File lib/ddql/token_type.rb, line 147
def data_type
  :int
end