class Tailnudge::Result

Public Class Methods

new(match, text) click to toggle source
# File lib/tailnudge/result.rb, line 5
def initialize(match, text)
  @match = match
  @text  = text
end

Public Instance Methods

message() click to toggle source
# File lib/tailnudge/result.rb, line 10
def message
  @match[1] || @text
end
pattern_id() click to toggle source
# File lib/tailnudge/result.rb, line 14
def pattern_id
  @match.regexp.object_id
end