Module: Betterdocs::MixIntoController::ClassMethods
- Defined in:
- lib/betterdocs/mix_into_controller.rb
Instance Method Summary collapse
Instance Method Details
#doc(type, &block) ⇒ Object
10 11 12 |
# File 'lib/betterdocs/mix_into_controller.rb', line 10 def doc(type, &block) docs.add_element(self, type, &block) end |
#docs ⇒ Object
14 15 16 |
# File 'lib/betterdocs/mix_into_controller.rb', line 14 def docs @docs ||= ControllerCollector.new end |
#method_added(name) ⇒ Object
6 7 8 |
# File 'lib/betterdocs/mix_into_controller.rb', line 6 def method_added(name) docs.configure_current_element(name) end |