Class: FixtureFox::Ast

Inherits:
AstNode show all
Defined in:
lib/fixture_fox/ast.rb

Instance Attribute Summary collapse

Attributes inherited from AstNode

#children, #parent, #type

Instance Method Summary collapse

Methods inherited from AstNode

#dump, #inspect

Constructor Details

#initialize(file = nil) ⇒ Ast

file = nil is used in tests



38
39
40
41
# File 'lib/fixture_fox/ast.rb', line 38

def initialize(file = nil) # file = nil is used in tests
  super(nil)
  @file = file
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



36
37
38
# File 'lib/fixture_fox/ast.rb', line 36

def file
  @file
end

Instance Method Details

#to_sObject



43
# File 'lib/fixture_fox/ast.rb', line 43

def to_s() "Ast" end