Skip to content

Commit

Permalink
temporarily pull out attr_readers from base
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Case committed Aug 24, 2013
1 parent 3c05104 commit 52c0399
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/echonest/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ class Base
#
# @param attrs [Array, Set, Symbol]
def self.attr_reader(*attrs)
@attr_readers ||= []
@attr_readers.concat attrs
#@attr_readers ||= []
#@attr_readers.concat attrs

mod = Module.new do
attrs.each do |attribute|
Expand Down Expand Up @@ -52,13 +52,13 @@ def update(attrs)
self
end

def self.attr_readers
@attr_readers
end
#def self.attr_readers
#@attr_readers
#end

def attr_readers
self.class.attr_readers
end
#def attr_readers
#self.class.attr_readers
#end

protected

Expand Down

0 comments on commit 52c0399

Please sign in to comment.