class DDQL::TokenType::ScientificNumeric

Public Class Methods

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

Public Instance Methods

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