aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module/delegation.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-02-06 21:12:53 +0100
committerXavier Noria <fxn@hashref.com>2010-02-06 21:12:53 +0100
commitbb818372011eec8060aee775f5bc2f402af25dab (patch)
tree3cade8a08699561e43bacfc328b289e298a986b9 /activesupport/lib/active_support/core_ext/module/delegation.rb
parentb712d80085a819cad09377f023b935493d8933de (diff)
downloadrails-bb818372011eec8060aee775f5bc2f402af25dab.tar.gz
rails-bb818372011eec8060aee775f5bc2f402af25dab.tar.bz2
rails-bb818372011eec8060aee775f5bc2f402af25dab.zip
reformats an example in the rdoc of delegate
Diffstat (limited to 'activesupport/lib/active_support/core_ext/module/delegation.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/module/delegation.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/delegation.rb b/activesupport/lib/active_support/core_ext/module/delegation.rb
index c751e29908..381181b2f4 100644
--- a/activesupport/lib/active_support/core_ext/module/delegation.rb
+++ b/activesupport/lib/active_support/core_ext/module/delegation.rb
@@ -7,8 +7,13 @@ class Module
# Delegation is particularly useful with Active Record associations:
#
# class Greeter < ActiveRecord::Base
- # def hello() "hello" end
- # def goodbye() "goodbye" end
+ # def hello
+ # "hello"
+ # end
+ #
+ # def goodbye
+ # "goodbye"
+ # end
# end
#
# class Foo < ActiveRecord::Base