Sha256: 5d7b06e925a5319353861241a47b2436fee18b0a41cbb65eb1d70e2aea7408ca
Contents?: true
Size: 682 Bytes
Versions: 4
Compression:
Stored size: 682 Bytes
Contents
module Gurke # class Tag # # Return path to file containing this feature. # # @return [String] File path. # attr_reader :file # Return line number where this feature is defined. # # @return [Fixnum] Line number. # attr_reader :line # @api private attr_reader :raw # @api private def initialize(file, line, raw) @file, @line, @raw = file, line, raw end def name raw.name[1..-1] end def to_s name end def match?(rule) p rule p name negated = rule[0] == '~' name = negated ? rule[1..-1] : rule negated != (self.name == name) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gurke-2.0.0.dev.1.b20 | lib/gurke/tag.rb |
gurke-2.0.0.dev.1.b19 | lib/gurke/tag.rb |
gurke-2.0.0.dev.1.b18 | lib/gurke/tag.rb |
gurke-2.0.0.dev.1.b17 | lib/gurke/tag.rb |