diff options
author | Xavier Noria <fxn@hashref.com> | 2010-02-06 23:55:33 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-02-06 23:55:33 +0100 |
commit | 81535d0fd2c5d9cb489c5fbefe8b949c0a560fa2 (patch) | |
tree | 446c653c28b791be2c2f0eb41e410e2b64fa9499 /activesupport/lib | |
parent | f3e41e0948bd96289cb01f4a1c692ebe233c76c5 (diff) | |
download | rails-81535d0fd2c5d9cb489c5fbefe8b949c0a560fa2.tar.gz rails-81535d0fd2c5d9cb489c5fbefe8b949c0a560fa2.tar.bz2 rails-81535d0fd2c5d9cb489c5fbefe8b949c0a560fa2.zip |
removes p calls in rdoc examples
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/introspection.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/introspection.rb b/activesupport/lib/active_support/core_ext/module/introspection.rb index 23a1063901..c08ad251dd 100644 --- a/activesupport/lib/active_support/core_ext/module/introspection.rb +++ b/activesupport/lib/active_support/core_ext/module/introspection.rb @@ -3,7 +3,7 @@ require 'active_support/inflector' class Module # Returns the name of the module containing this one. # - # p M::N.parent_name # => "M" + # M::N.parent_name # => "M" def parent_name unless defined? @parent_name @parent_name = name =~ /::[^:]+\Z/ ? $`.freeze : nil @@ -19,13 +19,13 @@ class Module # end # X = M::N # - # p M::N.parent # => M - # p X.parent # => M + # M::N.parent # => M + # X.parent # => M # # The parent of top-level and anonymous modules is Object. # - # p M.parent # => Object - # p Module.new.parent # => Object + # M.parent # => Object + # Module.new.parent # => Object # def parent parent_name ? ActiveSupport::Inflector.constantize(parent_name) : Object @@ -40,9 +40,9 @@ class Module # end # X = M::N # - # p M.parents # => [Object] - # p M::N.parents # => [M, Object] - # p X.parents # => [M, Object] + # M.parents # => [Object] + # M::N.parents # => [M, Object] + # X.parents # => [M, Object] # def parents parents = [] |