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.



1053
1054
1055
1056
# File 'lib/oktest.rb', line 1053

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

Instance Attribute Details

#_prefixObject

Returns the value of attribute _prefix.



1059
1060
1061
# File 'lib/oktest.rb', line 1059

def _prefix
  @_prefix
end

#targetObject (readonly)

Returns the value of attribute target.



1058
1059
1060
# File 'lib/oktest.rb', line 1058

def target
  @target
end

Instance Method Details

#+@Object



1072
1073
1074
1075
# File 'lib/oktest.rb', line 1072

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

#accept_visitor(visitor, *args) ⇒ Object



1067
1068
1069
1070
# File 'lib/oktest.rb', line 1067

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)


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

def topic?; true; end