class DDQL::TokenType::PostfixOperator
Public Class Methods
new()
click to toggle source
Calls superclass method
DDQL::TokenType::new
# File lib/ddql/token_type.rb, line 353 def initialize super(name: :postfixoperator, pattern: Operators.operator_regex(:postfix)) end
Public Instance Methods
as_hash(data)
click to toggle source
Calls superclass method
DDQL::TokenType::Operator#as_hash
# File lib/ddql/token_type.rb, line 357 def as_hash(data) if data == 'YES' || data == 'NO' {yes_no_op: {op_symbol(data) => data}} else super end end
postfix?()
click to toggle source
# File lib/ddql/token_type.rb, line 365 def postfix? true end