File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
activesupport/lib/active_support Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ def delete_entry(key, options) # :nodoc:
511511
512512 private
513513 # Merges the default options with ones specific to a method call.
514- def merged_options ( call_options ) # :nodoc:
514+ def merged_options ( call_options )
515515 if call_options
516516 options . merge ( call_options )
517517 else
@@ -522,7 +522,7 @@ def merged_options(call_options) # :nodoc:
522522 # Expands key to be a consistent string value. Invokes +cache_key+ if
523523 # object responds to +cache_key+. Otherwise, +to_param+ method will be
524524 # called. If the key is a Hash, then keys will be sorted alphabetically.
525- def expanded_key ( key ) # :nodoc:
525+ def expanded_key ( key )
526526 return key . cache_key . to_s if key . respond_to? ( :cache_key )
527527
528528 case key
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ def delete_entry(key, options)
100100
101101 private
102102 # Lock a file for a block so only one process can modify it at a time.
103- def lock_file ( file_name , &block ) # :nodoc:
103+ def lock_file ( file_name , &block )
104104 if File . exist? ( file_name )
105105 File . open ( file_name , "r+" ) do |f |
106106 begin
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ def sum(sign, time = ::Time.current) #:nodoc:
181181
182182 private
183183
184- def method_missing ( method , *args , &block ) #:nodoc:
184+ def method_missing ( method , *args , &block )
185185 value . send ( method , *args , &block )
186186 end
187187 end
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ def self.filename
358358
359359 private
360360
361- def apply_mapping ( string , mapping ) #:nodoc:
361+ def apply_mapping ( string , mapping )
362362 database . codepoints
363363 string . each_codepoint . map do |codepoint |
364364 cp = database . codepoints [ codepoint ]
Original file line number Diff line number Diff line change @@ -139,17 +139,17 @@ def options
139139 @options ||= format_options . merge ( opts )
140140 end
141141
142- def format_options #:nodoc:
142+ def format_options
143143 default_format_options . merge! ( i18n_format_options )
144144 end
145145
146- def default_format_options #:nodoc:
146+ def default_format_options
147147 options = DEFAULTS [ :format ] . dup
148148 options . merge! ( DEFAULTS [ namespace ] [ :format ] ) if namespace
149149 options
150150 end
151151
152- def i18n_format_options #:nodoc:
152+ def i18n_format_options
153153 locale = opts [ :locale ]
154154 options = I18n . translate ( :'number.format' , locale : locale , default : { } ) . dup
155155
@@ -160,7 +160,7 @@ def i18n_format_options #:nodoc:
160160 options
161161 end
162162
163- def translate_number_value_with_default ( key , i18n_options = { } ) #:nodoc:
163+ def translate_number_value_with_default ( key , i18n_options = { } )
164164 I18n . translate ( key , { default : default_value ( key ) , scope : :number } . merge! ( i18n_options ) )
165165 end
166166
@@ -172,7 +172,7 @@ def default_value(key)
172172 key . split ( "." ) . reduce ( DEFAULTS ) { |defaults , k | defaults [ k . to_sym ] }
173173 end
174174
175- def valid_float? #:nodoc:
175+ def valid_float?
176176 Float ( number )
177177 rescue ArgumentError , TypeError
178178 false
You can’t perform that action at this time.
0 commit comments