Support of 'delegate'

Issue #8 resolved
Amrut Jadhav created an issue

I have added support for documentation of delegate class method in ruby. New regex for matching delegate"(?P<indent>^\s*)(?P<delegate>delegate)\s*:.*$",line_for_selection)

Also, I have refactored code little bit. Instead of defining separate functions for fields, association, validations, delegate, I have created a single function.

def handle_model_helpers(self,edit,r,helper_comment):
  self.indent ="indent")
  self.lines = []

Test it and merge into the main branch :)

Note: I also attached updated file

Comments (5)

  1. Log in to comment