Permalink
Browse files

Minor syntactical changes

  • Loading branch information...
1 parent 0fb17d1 commit 900432e44f32c7932538e90ec808bb9c1c189839 @mjackson committed Feb 22, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/citrus.rb
View
8 lib/citrus.rb
@@ -1271,7 +1271,7 @@ def to_citrus # :nodoc:
# instantiated as needed. This class provides several convenient tree
# traversal methods that help when examining and interpreting parse results.
class Match
- def initialize(input, events=[], offset = 0)
+ def initialize(input, events=[], offset=0)
@input = input
@offset = offset
@@ -1297,18 +1297,18 @@ def initialize(input, events=[], offset = 0)
@events = events
end
- # The main parsed text.
+ # The original Input this Match was generated on.
attr_reader :input
- # The index of this match in the input text.
+ # The index of this match in the #input.
attr_reader :offset
# The array of events for this match.
attr_reader :events
# Returns the length of this match.
def length
- @events.last
+ events.last
end
# Convenient shortcut for +input.source+

0 comments on commit 900432e

Please sign in to comment.