Class: Oktest::ScopeNode
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Attributes inherited from Node
#context_class, #fixtures, #hooks, #parent, #tag
Instance Method Summary collapse
- #accept_visitor(visitor, *args) ⇒ Object
-
#initialize(parent, filename, tag: nil) ⇒ ScopeNode
constructor
A new instance of ScopeNode.
Methods inherited from Node
#_repr, #add_child, #clear_children, #each_child, #get_fixture_block, #get_hook_block, #has_child?, #new_context_object, #register_fixture_block, #register_hook_block, #remove_child_at, #run_block_in_context_class, #topic?, #unlink_parent
Methods inherited from Item
Constructor Details
#initialize(parent, filename, tag: nil) ⇒ ScopeNode
1084 1085 1086 1087 |
# File 'lib/oktest.rb', line 1084 def initialize(parent, filename, tag: nil) super(parent, tag: tag) @filename = filename end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
1089 1090 1091 |
# File 'lib/oktest.rb', line 1089 def filename @filename end |
Instance Method Details
#accept_visitor(visitor, *args) ⇒ Object
1091 1092 1093 1094 |
# File 'lib/oktest.rb', line 1091 def accept_visitor(visitor, *args) #; [!vr6ko] invokes 'visit_spec()' method of visitor and returns result of it. return visitor.visit_scope(self, *args) end |