Class: Crapshoot::Tokens::Constant
- Defined in:
- lib/crapshoot/tokens/constant.rb
Instance Method Summary collapse
- #eval(stack) ⇒ Object
-
#initialize(number) ⇒ Constant
constructor
A new instance of Constant.
- #inspect ⇒ Object
Methods inherited from Base
Constructor Details
Instance Method Details
#eval(stack) ⇒ Object
10 11 12 |
# File 'lib/crapshoot/tokens/constant.rb', line 10 def eval(stack) return @value end |
#inspect ⇒ Object
14 15 16 |
# File 'lib/crapshoot/tokens/constant.rb', line 14 def inspect "<Crapshoot::Tokens::Constant value=#{@value}>" end |