From d450ab7c0652e049a8e6e11f8f5f121cbd1ab113 Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Fri, 1 Oct 2010 09:51:57 +1000 Subject: [PATCH] parser comments --- lib/validates_timeliness/parser.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/validates_timeliness/parser.rb b/lib/validates_timeliness/parser.rb index 905312e..155dcc2 100644 --- a/lib/validates_timeliness/parser.rb +++ b/lib/validates_timeliness/parser.rb @@ -134,14 +134,14 @@ module ValidatesTimeliness '_' => [ '\s?' ] } - # Component values will be passed to the format method if matched in the - # time string. The key should match the key defined in the format tokens. + # Component argument values will be passed to the format method if matched in + # the time string. The key should match the key defined in the format tokens. # - # The array consists of the position the argument should be inserted in - # the time array, and the code to place in the time array. If the position - # is nil, then the argument won't be put in the time array. + # The array consists of the position the value should be inserted in + # the time array, and the code to place in the time array. # - # If the code slot is empty, then just the raw argument value is used. + # If the position is nil, then the value won't be put in the time array. If the + # code slot is empty, then just the raw value is used. # cattr_accessor :format_components @@format_components = { @@ -349,7 +349,7 @@ module ValidatesTimeliness # Compiles a format method which maps the regexp capture groups to method # arguments based on order captured. A time array is built using the argument - # values placed in the position defined by format component. + # values placed in the position defined by the component. # def compile_format_method(components, name) values = [nil] * 7