Skip to content

Commit

Permalink
added documentation for the :endian_precedence option
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Jarvis committed May 30, 2011
1 parent c29280b commit 31a6089
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/chronic/chronic.rb
Expand Up @@ -47,6 +47,14 @@ class << self
# assume that means 5:00pm. If <tt>:none</tt> is given, no assumption
# will be made, and the first matching instance of that time will
# be used.
#
# [<tt>:endian_precedence</tt>]
# Array (defaults to <tt>[:middle, :little]</tt>)
#
# By default, Chronic will parse "03/04/2011" as the fourth day
# of the third month. Alternatively you can tell Chronic to parse
# this as the third day of the fourth month by altering the
# <tt>:endian_precedence</tt> to <tt>[:little, :middle]</tt>.
def parse(text, specified_options = {})
@text = text
options = DEFAULT_OPTIONS.merge specified_options
Expand Down

0 comments on commit 31a6089

Please sign in to comment.