class Gurke::Tag

Attributes

file[R]

Return path to file containing this feature.

@return [String] File path.

line[R]

Return line number where this feature is defined.

@return [Fixnum] Line number.

raw[R]

@api private

Public Class Methods

new(file, line, raw) click to toggle source

@api private

# File lib/gurke/tag.rb, line 22
def initialize(file, line, raw)
  @file = file
  @line = line
  @raw = raw
end

Public Instance Methods

match?(rule) click to toggle source
# File lib/gurke/tag.rb, line 36
def match?(rule)
  p rule
  p name
  negated = rule[0] == '~'
  name = negated ? rule[1..-1] : rule
  negated != (self.name == name)
end
name() click to toggle source
# File lib/gurke/tag.rb, line 28
def name
  raw.name[1..-1]
end
to_s() click to toggle source
# File lib/gurke/tag.rb, line 32
def to_s
  name
end