Class: C::IntLiteral
- Inherits:
-
Literal
show all
- Defined in:
- lib/cast/to_s.rb,
lib/cast/c_nodes.rb,
lib/cast/c_nodes.rb
Constant Summary
Constants inherited
from Node
Node::INSPECT_TAB
Instance Attribute Summary
Attributes inherited from Node
#parent, #pos, #subclasses
Instance Method Summary
collapse
Methods inherited from Expression
parse
Methods inherited from Node
#==, #=~, abstract, add_field, #assert_invariants, #attached?, child, #clone, #depth_first, #detach, #detached?, #dup, #each, #eql?, field, #fields, fields, #hash, inherited, initializer, #insert_next, #insert_prev, #inspect, inspect1, #list_next, #list_prev, #match?, #method_missing, new_at, #next, #node_after, #node_before, #postorder, #preorder, #prev, #remove_node, #replace_node, #replace_with, #reverse_depth_first, #reverse_each, #reverse_postorder, #reverse_preorder, subclasses_recursive, #swap_with
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class C::Node
Instance Method Details
#dec? ⇒ Boolean
713
714
715
|
# File 'lib/cast/c_nodes.rb', line 713
def dec?
format.equal? :dec
end
|
#hex? ⇒ Boolean
716
717
718
|
# File 'lib/cast/c_nodes.rb', line 716
def hex?
format.equal? :hex
end
|
#oct? ⇒ Boolean
719
720
721
|
# File 'lib/cast/c_nodes.rb', line 719
def oct?
format.equal? :oct
end
|
#to_s ⇒ Object
529
530
531
|
# File 'lib/cast/to_s.rb', line 529
def to_s
val.to_s
end
|