def generate_names(function, options)
      aliases = ([options[:alias]] + [options[:aliases]]).flatten.compact
      name = options[:rename] || function.snake_case
      case name
        when /^is_/
          aliases << name.sub(/^is_/, '') + '?'
          options[:boolean] = true
        when /^set_/
          aliases << name.sub(/^set_/, '')+ '='
        when /^get_/
          aliases << name.sub(/^get_/, '')
      end
      [name, aliases]
    end
def generate_names(function, options)
      aliases = ([options[:alias]] + [options[:aliases]]).flatten.compact
      name = options[:rename] || function.snake_case
      case name
        when /^is_/
          aliases << name.sub(/^is_/, '') + '?'
          options[:boolean] = true
        when /^set_/
          aliases << name.sub(/^set_/, '')+ '='
        when /^get_/
          aliases << name.sub(/^get_/, '')
      end
      [name, aliases]
    end
Generates name and aliases for defined method based on function name,
 sets boolean flag for test functions (Is...)