Class: Oktest::TopicNode
Instance Attribute Summary collapse
-
#_prefix ⇒ Object
Returns the value of attribute _prefix.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Attributes inherited from Node
#context_class, #fixtures, #hooks, #parent, #tag
Instance Method Summary collapse
- #+@ ⇒ Object
- #accept_visitor(visitor, *args) ⇒ Object
-
#initialize(parent, target, tag: nil) ⇒ TopicNode
constructor
A new instance of TopicNode.
- #topic? ⇒ Boolean
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
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
#_prefix ⇒ Object
Returns the value of attribute _prefix.
813 814 815 |
# File 'lib/oktest.rb', line 813 def _prefix @_prefix end |
#target ⇒ Object (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
819 |
# File 'lib/oktest.rb', line 819 def topic?; true; end |