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
790 791 792 793 |
# File 'lib/oktest.rb', line 790 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.
795 796 797 |
# File 'lib/oktest.rb', line 795 def filename @filename end |
Instance Method Details
#accept_visitor(visitor, *args) ⇒ Object
797 798 799 800 |
# File 'lib/oktest.rb', line 797 def accept_visitor(visitor, *args) #; [!vr6ko] invokes 'visit_spec()' method of visitor and returns result of it. return visitor.visit_scope(self, *args) end |