Class: Rubinius::AST::Not

Inherits:
Node
  • Object
show all
Defined in:
lib/compiler/ast/operators.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#line

Instance Method Summary collapse

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

#valueObject

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_sexpObject



37
38
39
# File 'lib/compiler/ast/operators.rb', line 37

def to_sexp
  [:not, @value.to_sexp]
end