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.
Methods should be organized in a class/module in the following way:
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.