Skip to content

Commit

Permalink
Get rid of the serial_number alias for sn.
Browse files Browse the repository at this point in the history
serial_number is not an uncommon name for an attribute on a model, so better not to use it.
  • Loading branch information
notahat committed Jun 20, 2011
1 parent c4f99a4 commit f45bf07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/machinist/lathe.rb
Expand Up @@ -19,8 +19,9 @@ def initialize(klass, serial_number, attributes = {})
end end


# Returns a unique serial number for the object under construction. # Returns a unique serial number for the object under construction.
attr_reader :serial_number def sn
alias_method :sn, :serial_number @serial_number
end


# Returns the object under construction. # Returns the object under construction.
attr_reader :object attr_reader :object
Expand Down

0 comments on commit f45bf07

Please sign in to comment.