class IgnoredLine

Attributes

has_match[R]
off[R]
str[R]

Public Class Methods

new(str, off) click to toggle source
# File lib/cless/data.rb, line 248
def initialize(str, off)
  @str = str
  @has_match = false
  @off = off                  # Byte offset in file of beginning of line
end

Public Instance Methods

clear_match() click to toggle source
# File lib/cless/data.rb, line 262
def clear_match; @has_match = false; @m = nil; end
highlight() click to toggle source

An ignored line is never highlighted

# File lib/cless/data.rb, line 268
def highlight; false; end
Also aliased as: highlight?
highlight=(*args) click to toggle source
# File lib/cless/data.rb, line 271
def highlight=(*args); end
highlight?()
Alias for: highlight
ignored() click to toggle source
# File lib/cless/data.rb, line 264
def ignored; true; end
Also aliased as: ignored?
ignored?()
Alias for: ignored
match(pattern) click to toggle source
# File lib/cless/data.rb, line 254
def match(pattern)
  if m = @str.match(pattern)
    @m = m
    @has_match = true
  end
end
matches() click to toggle source
# File lib/cless/data.rb, line 261
def matches; @m; end