Skip to content
This repository
Browse code

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...
commit 6ce844a3c1d9c1de4ae54cbe73e0dbd0acbe688a 1 parent 8bbc5b4
Xavier Noria authored March 06, 2011
14  activesupport/lib/active_support/configurable.rb
@@ -41,9 +41,6 @@ def configure
41 41
       # Allows you to add shortcut so that you don't have to refer to attribute through config.
42 42
       # Also look at the example for config to contrast.
43 43
       #
44  
-      #
45  
-      # ==== Example
46  
-      #
47 44
       #   class User
48 45
       #     include ActiveSupport::Configurable
49 46
       #     config_accessor :allowed_access
@@ -67,24 +64,21 @@ def #{name}=(value); config.#{name} = value; end
67 64
     end
68 65
 
69 66
     # Reads and writes attributes from a configuration <tt>OrderedHash</tt>.
70  
-    # 
71 67
     #
72  
-    # ==== Example
  68
+    #   require 'active_support/configurable'
73 69
     #
74  
-    #   require 'active_support/configurable'      
75  
-    #  
76 70
     #   class User
77 71
     #     include ActiveSupport::Configurable
78  
-    #   end 
  72
+    #   end
79 73
     #
80 74
     #   user = User.new
81  
-    # 
  75
+    #
82 76
     #   user.config.allowed_access = true
83 77
     #   user.config.level = 1
84 78
     #
85 79
     #   user.config.allowed_access # => true
86 80
     #   user.config.level          # => 1
87  
-    # 
  81
+    #
88 82
     def config
89 83
       @_config ||= self.class.config.inheritable_copy
90 84
     end

0 notes on commit 6ce844a

Please sign in to comment.
Something went wrong with that request. Please try again.