class Forkforge::CharacterDecompositionMapping::Tag
Attributes
sym[R]
tag[R]
Public Class Methods
new(str)
click to toggle source
# File lib/forkforge/internal/character_decomposition_mapping.rb, line 48 def initialize str m = "#{str}".match /^<?(#{VARIANTS.keys.join('|')})>?$/ @tag, @sym = "<#{m[1]}>", :"#{m[1]}" if MatchData === m end
tag(s)
click to toggle source
# File lib/forkforge/internal/character_decomposition_mapping.rb, line 55 def self.tag s Tag.new(s) end
tag?(s)
click to toggle source
# File lib/forkforge/internal/character_decomposition_mapping.rb, line 58 def self.tag? s self.tag(s).valid? end
Public Instance Methods
valid?()
click to toggle source
# File lib/forkforge/internal/character_decomposition_mapping.rb, line 52 def valid? !@tag.nil? && !@sym.nil? end