Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Name variables more consistently.

  • Loading branch information...
commit d6fa4f6f54769d209a8d01530dad26419894defd 1 parent bc4872a
John Firebaugh authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/machinist/lathe.rb
View
10 lib/machinist/lathe.rb
@@ -51,13 +51,13 @@ def make_one_value(attribute, args) #:nodoc:
yield
end
- def assign_attribute(key, value) #:nodoc:
- @assigned_attributes[key.to_sym] = value
- @object.send("#{key}=", value)
+ def assign_attribute(attribute, value) #:nodoc:
+ @assigned_attributes[attribute.to_sym] = value
+ @object.send("#{attribute}=", value)
end
- def attribute_assigned?(key) #:nodoc:
- @assigned_attributes.has_key?(key.to_sym)
+ def attribute_assigned?(attribute) #:nodoc:
+ @assigned_attributes.has_key?(attribute.to_sym)
end
def raise_argument_error(attribute) #:nodoc:
Please sign in to comment.
Something went wrong with that request. Please try again.