Class: AnnotateRb::ModelAnnotator::Components::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/annotate_rb/model_annotator/components.rb

Instance Method Summary collapse

Instance Method Details

#to_defaultObject

Raises:

  • (NoMethodError)


21
22
23
# File 'lib/annotate_rb/model_annotator/components.rb', line 21

def to_default
  raise NoMethodError, "Not implemented by class #{self.class}"
end

#to_markdownObject

Methods default to #to_default, unless overridden by sub class



9
10
11
# File 'lib/annotate_rb/model_annotator/components.rb', line 9

def to_markdown
  to_default
end

#to_rdocObject



13
14
15
# File 'lib/annotate_rb/model_annotator/components.rb', line 13

def to_rdoc
  to_default
end

#to_yardObject



17
18
19
# File 'lib/annotate_rb/model_annotator/components.rb', line 17

def to_yard
  to_default
end