Class: Oktest::TopicNode

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, #unlink_parent

Methods inherited from Item

#_repr, #unlink_parent

Constructor Details

#initialize(parent, target, tag: nil) ⇒ TopicNode

Returns a new instance of TopicNode.



807
808
809
810
# File 'lib/oktest.rb', line 807

def initialize(parent, target, tag: nil)
  super(parent, tag: tag)
  @target = target
end

Instance Attribute Details

#_prefixObject

Returns the value of attribute _prefix.



813
814
815
# File 'lib/oktest.rb', line 813

def _prefix
  @_prefix
end

#targetObject (readonly)

Returns the value of attribute target.



812
813
814
# File 'lib/oktest.rb', line 812

def target
  @target
end

Instance Method Details

#+@Object



826
827
828
829
# File 'lib/oktest.rb', line 826

def +@
  #; [!tzorv] returns self.
  self
end

#accept_visitor(visitor, *args) ⇒ Object



821
822
823
824
# File 'lib/oktest.rb', line 821

def accept_visitor(visitor, *args)
  #; [!c1b33] invokes 'visit_topic()' method of visitor and returns result of it.
  return visitor.visit_topic(self, *args)
end

#topic?Boolean

Returns:

  • (Boolean)


819
# File 'lib/oktest.rb', line 819

def topic?; true; end