class FieldMatch
Similar interface to MatchData. Return the entire string as being a match.
Public Class Methods
new(str)
click to toggle source
# File lib/cless/data.rb, line 198 def initialize(str); @str = str; end
Public Instance Methods
[](i)
click to toggle source
# File lib/cless/data.rb, line 202 def [](i); (i == 0) ? @str : nil; end
post_match()
click to toggle source
# File lib/cless/data.rb, line 201 def post_match; ""; end
pre_match()
click to toggle source
# File lib/cless/data.rb, line 200 def pre_match; ""; end
string()
click to toggle source
# File lib/cless/data.rb, line 199 def string; @str; end