Skip to content
Permalink
Browse files
removing out of date comment. ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️ @pixeltrix
  • Loading branch information
tenderlove committed Mar 12, 2013
1 parent ed9e3f6 commit 7169e4c71572cb96fa01317edf7b6c8ba9565f8e
Showing 1 changed file with 0 additions and 3 deletions.
@@ -73,9 +73,6 @@ def class_attribute(*attrs)
instance_reader = instance_reader = options.fetch(:instance_accessor, true) && options.fetch(:instance_reader, true)
instance_writer = options.fetch(:instance_accessor, true) && options.fetch(:instance_writer, true)

# We use class_eval here rather than define_method because class_attribute
# may be used in a performance sensitive context therefore the overhead that
# define_method introduces may become significant.
attrs.each do |name|
define_singleton_method(name) { nil }
define_singleton_method("#{name}?") { !!public_send(name) }

3 comments on commit 7169e4c

@sikachu
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit message breaks GitHub styling :trollface:

Screen Shot 2013-03-12 at 10 04 32 PM

@sadjow
Copy link
Contributor

@sadjow sadjow commented on 7169e4c Mar 14, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could only be Tenderlove

@jtigger
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rubylicious.

Please sign in to comment.