Class: BaseTag
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- BaseTag
- Defined in:
- lib/needle_in_a_haystack/concerns/base_tag.rb
Direct Known Subclasses
Instance Method Summary collapse
- #ancestors ⇒ Object
- #descendants ⇒ Object
- #full_path ⇒ Object
- #leaf? ⇒ Boolean
- #prevent_circular_reference ⇒ Object
- #root? ⇒ Boolean
- #siblings ⇒ Object
Instance Method Details
#ancestors ⇒ Object
12 13 14 |
# File 'lib/needle_in_a_haystack/concerns/base_tag.rb', line 12 def ancestors raise NotImplementedError, "Subclasses must implement an ancestors-method" end |
#descendants ⇒ Object
16 17 18 |
# File 'lib/needle_in_a_haystack/concerns/base_tag.rb', line 16 def descendants raise NotImplementedError, "Subclasses must implement a descendants-method" end |
#full_path ⇒ Object
4 5 6 |
# File 'lib/needle_in_a_haystack/concerns/base_tag.rb', line 4 def full_path raise NotImplementedError, "Subclasses must implement a full_path-method" end |
#leaf? ⇒ Boolean
28 29 30 |
# File 'lib/needle_in_a_haystack/concerns/base_tag.rb', line 28 def leaf? raise NotImplementedError, "Subclasses must implement a leaf?-method" end |
#prevent_circular_reference ⇒ Object
8 9 10 |
# File 'lib/needle_in_a_haystack/concerns/base_tag.rb', line 8 def prevent_circular_reference raise NotImplementedError, "Subclasses must implement a prevent_circular_reference-method" end |
#root? ⇒ Boolean
24 25 26 |
# File 'lib/needle_in_a_haystack/concerns/base_tag.rb', line 24 def root? raise NotImplementedError, "Subclasses must implement a root?-method" end |
#siblings ⇒ Object
20 21 22 |
# File 'lib/needle_in_a_haystack/concerns/base_tag.rb', line 20 def siblings raise NotImplementedError, "Subclasses must implement a siblings-method" end |