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

re.search("(?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 = r.group("indent")
  self.lines = []
  self.lines.append(helper_comment)
  self.run_command(edit,self.concat())

Test it and merge into the main branch :)

Note: I also attached updated yardgen.py file

Comments (5)

  1. Log in to comment