Class: Symbolic::Coerced

Inherits:
Object
  • Object
show all
Includes:
AST
Defined in:
lib/symbolic_ext/coerced.rb

Instance Method Summary collapse

Methods included from AST

#new_ast

Instance Method Details

#%(numeric) ⇒ Object



8
9
10
# File 'lib/symbolic_ext/coerced.rb', line 8

def %(numeric)
  numeric.new_ast(:%, @symbolic)
end

#**(numeric) ⇒ Object



12
13
14
# File 'lib/symbolic_ext/coerced.rb', line 12

def **(numeric)
  numeric.new_ast(:**, @symbolic)
end