lib/docrb/lib/docrb/ruby_parser.rb
def change_method_kind(of:, to:, on:)
      return unless on.key?(:methods) && (method = on[:methods].find { |m| m[:name] == of })

      method[:type] = to
    end
# Changes the kind of a method object (E.g.: Between sdef and def)
#
# of: - Name of the method having its kind changed.
# to: - New kind value for the method.
# on: - The methods's parent container.
Changes the kind of a method object
of: - Name of the method having its kind changed.
to: - New kind value for the method.
on: - The methods's parent container.
Changes the kind of a method object of : - Name of the method having its kind changed . to : - New kind value for the method . on : - The methods ' s parent container .
def change_method_kind(of:, to:, on:)
      return unless on.key?(:methods) && (method = on[:methods].find { |m| m[:name] == of })
      method[:type] = to
    end
def change_method_kind ( of : , to : , on : ) return unless on . key? ( :methods ) && ( method = on [ :methods ] . find { | m | m [ :name ] == of } ) method [ :type ] = to end
Changes the kind of a method object (E.g.
Changes the kind of a method object ( E . g .
of
to
on