Class: Oktest::ScopeNode

Inherits:
Node show all
Defined in:
lib/oktest.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#context_class, #fixtures, #hooks, #parent, #tag

Instance Method Summary collapse

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

#_repr, #unlink_parent

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

#filenameObject (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