Class: CodeTools::AST::RationalLiteral
- Inherits:
-
NumberLiteral
- Object
- Node
- NumberLiteral
- CodeTools::AST::RationalLiteral
- Defined in:
- lib/rubinius/code/ast/literals.rb
Instance Attribute Summary
Attributes inherited from NumberLiteral
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from NumberLiteral
#defined, #initialize, #to_sexp
Methods inherited from Node
#ascii_graph, #attributes, #children, #defined, #initialize, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, #or_bytecode, #pos, #set_child, #to_sexp, #transform, transform, transform_comment, transform_kind, transform_kind=, transform_name, #value_defined, #visit, #walk
Constructor Details
This class inherits a constructor from CodeTools::AST::NumberLiteral
Instance Method Details
#bytecode(g) ⇒ Object
281 282 283 284 285 |
# File 'lib/rubinius/code/ast/literals.rb', line 281 def bytecode(g) pos(g) g.push_literal @value end |