Skip to content

Commit

Permalink
fixes attr for module in ruby version 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzih committed Oct 17, 2011
1 parent 19766ef commit 1e85cdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions kernel/common/module19.rb
Expand Up @@ -18,4 +18,8 @@ def const_defined?(name, search_parents=true)
def name
@module_name ? @module_name.to_s : nil
end

def attr(*attributes)
attributes.each { |attribute| attr_reader attribute.to_sym }
end
end
1 change: 0 additions & 1 deletion spec/tags/19/ruby/core/module/attr_tags.txt

This file was deleted.

0 comments on commit 1e85cdc

Please sign in to comment.