Class: FixtureFox::Ast
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Attributes inherited from AstNode
Instance Method Summary collapse
-
#initialize(file = nil) ⇒ Ast
constructor
file = nil is used in tests.
- #to_s ⇒ Object
Methods inherited from AstNode
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
#file ⇒ Object (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_s ⇒ Object
43 |
# File 'lib/fixture_fox/ast.rb', line 43 def to_s() "Ast" end |