Skip to content

Order methods by abstraction grouped by use #10

Description

@patricksrobertson

Methods should be organized in a class/module in the following way:

Class Documenturion
  def high_level_method
    a_lower_level_method @instance
  end

  def a_lower_level_method(parameter)
    #roar
  end

  def second_high_level_method
    another_low_level_method @instance
  end

  def another_low_level_method(parameter)
    #roar again
  end
end

I think when there isn't a clear level of abstraction present in a class, an ad-hoc style such as alphabetical is quite acceptable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions