Skip to content

Commit

Permalink
removes Examples headers introduced in 9b96de6
Browse files Browse the repository at this point in the history
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
fxn committed Mar 6, 2011
1 parent 8bbc5b4 commit 6ce844a
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions activesupport/lib/active_support/configurable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6ce844a

Please sign in to comment.