class Ripgrep::Match
Attributes
body[R]
file[R]
raw_line[R]
Public Class Methods
new(file:, body:, raw_line:)
click to toggle source
# File lib/ripgrep/match.rb, line 5 def initialize(file:, body:, raw_line:) @file = file @body = body @raw_line = raw_line end
Public Instance Methods
to_json()
click to toggle source
# File lib/ripgrep/match.rb, line 15 def to_json { file: file, body: body, raw_line: raw_line }.to_json end
to_s()
click to toggle source
# File lib/ripgrep/match.rb, line 11 def to_s raw_line end