Permalink
Browse files

removes Examples headers introduced in 9b96de6

Example headers are discouraged in the API guidelines.
Code just flows with the text. They may be good in
places where there's a lot of stuff and structure may
add clarity
  • Loading branch information...
1 parent 8bbc5b4 commit 6ce844a3c1d9c1de4ae54cbe73e0dbd0acbe688a @fxn fxn committed Mar 6, 2011
Showing with 4 additions and 10 deletions.
  1. +4 −10 activesupport/lib/active_support/configurable.rb
View
14 activesupport/lib/active_support/configurable.rb
@@ -41,9 +41,6 @@ def configure
# Allows you to add shortcut so that you don't have to refer to attribute through config.
# Also look at the example for config to contrast.
#
- #
- # ==== Example
- #
# class User
# include ActiveSupport::Configurable
# config_accessor :allowed_access
@@ -67,24 +64,21 @@ def #{name}=(value); config.#{name} = value; end
end
# Reads and writes attributes from a configuration <tt>OrderedHash</tt>.
- #
#
- # ==== Example
+ # require 'active_support/configurable'
#
- # require 'active_support/configurable'
- #
# class User
# include ActiveSupport::Configurable
- # end
+ # end
#
# user = User.new
- #
+ #
# user.config.allowed_access = true
# user.config.level = 1
#
# user.config.allowed_access # => true
# user.config.level # => 1
- #
+ #
def config
@_config ||= self.class.config.inheritable_copy
end

0 comments on commit 6ce844a

Please sign in to comment.