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
9 10 11 |
# File 'lib/crapshoot/tokens/constant.rb', line 9 def eval(stack) return @value end |
#inspect ⇒ Object
13 14 15 |
# File 'lib/crapshoot/tokens/constant.rb', line 13 def inspect "<Crapshoot::Tokens::Constant value=#{@value}>" end |