def parent_fetcher(getter)
      parent = getter.strip.gsub(/[.][^.]+$/, '')

      parent = 'self' if parent.blank? || !getter.index('.')

      parent
    end
def parent_fetcher(getter)
      parent = getter.strip.gsub(/[.][^.]+$/, '')

      parent = 'self' if parent.blank? || !getter.index('.')

      parent
    end
Returns ruby code to fetch the parent. (by removing the last fetch)
 TODO: Probably want to do this with AST transforms with the parser/unparser gems