Class: Rubinius::AST::Not
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, value) ⇒ Not
constructor
A new instance of Not.
- #to_sexp ⇒ Object
Methods inherited from Node
#ascii_graph, #attributes, #children, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, node_name, #pos, #set_child, transform, #transform, transform_comment, transform_kind, transform_kind=, transform_name, #visit, #walk
Constructor Details
#initialize(line, value) ⇒ Not
Returns a new instance of Not.
32 33 34 35 |
# File 'lib/compiler/ast/operators.rb', line 32 def initialize(line, value) @line = line @value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
30 31 32 |
# File 'lib/compiler/ast/operators.rb', line 30 def value @value end |
Instance Method Details
#to_sexp ⇒ Object
37 38 39 |
# File 'lib/compiler/ast/operators.rb', line 37 def to_sexp [:not, @value.to_sexp] end |