Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 296 Bytes

rename-method.md

File metadata and controls

27 lines (18 loc) · 296 Bytes

Rename Method

Example

Before

def foo(a, b)
  (a + b) / 2.0
end

foo(37, 99)

After

def average(a, b)
  (a + b) / 2.0
end

average(37, 99)

References