class DDQL::TokenType::SpecialMarker
Public Class Methods
new()
click to toggle source
Calls superclass method
DDQL::TokenType::Literal::new
# File lib/ddql/token_type.rb, line 175 def initialize super(name: :special_marker, pattern: /\$[a-zA-Z_]+/) trimming!(1..-1) end
Public Instance Methods
as_hash(data)
click to toggle source
Calls superclass method
DDQL::TokenType::Literal#as_hash
# File lib/ddql/token_type.rb, line 180 def as_hash(data) super({data.downcase.to_sym => "$#{data}"}) end
data_type()
click to toggle source
# File lib/ddql/token_type.rb, line 184 def data_type name end