Skip to content

Commit

Permalink
Fix grammar of internal comment and modify it's location
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed Feb 9, 2014
1 parent 2fdbd59 commit dbe3345
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def attr_internal_ivar_name(attr)


def attr_internal_define(attr_name, type) def attr_internal_define(attr_name, type)
internal_name = attr_internal_ivar_name(attr_name).sub(/\A@/, '') internal_name = attr_internal_ivar_name(attr_name).sub(/\A@/, '')
class_eval do # class_eval is necessary on 1.9 or else the methods a made private # class_eval is necessary on 1.9 or else the methods are made private
class_eval do
# use native attr_* methods as they are faster on some Ruby implementations # use native attr_* methods as they are faster on some Ruby implementations
send("attr_#{type}", internal_name) send("attr_#{type}", internal_name)
end end
Expand Down

0 comments on commit dbe3345

Please sign in to comment.