class Milkode::WideMatcherZero

Attributes

num_max[R]

Public Class Methods

new() click to toggle source
# File lib/milkode/common/wide_matcher.rb, line 60
def initialize
  @num_max   = 0
end

Public Instance Methods

add_line_matchs(index, matches) click to toggle source
# File lib/milkode/common/wide_matcher.rb, line 68
def add_line_matchs(index, matches)
  @index   = index
  @matches = matches
end
linenum() click to toggle source
# File lib/milkode/common/wide_matcher.rb, line 64
def linenum
  1
end
match?() click to toggle source
# File lib/milkode/common/wide_matcher.rb, line 73
def match?
  @matches.any?
end
match_lines() click to toggle source
# File lib/milkode/common/wide_matcher.rb, line 77
def match_lines
  [MatchLineResult.new(@index, @matches.compact)]
end