Class: Forkforge::CharacterDecompositionMapping::Tag
- Defined in:
- lib/forkforge/internal/character_decomposition_mapping.rb
Instance Attribute Summary collapse
-
#sym ⇒ Object
readonly
Returns the value of attribute sym.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(str) ⇒ Tag
constructor
A new instance of Tag.
- #valid? ⇒ Boolean
Constructor Details
Instance Attribute Details
#sym ⇒ Object (readonly)
Returns the value of attribute sym.
47 48 49 |
# File 'lib/forkforge/internal/character_decomposition_mapping.rb', line 47 def sym @sym end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
47 48 49 |
# File 'lib/forkforge/internal/character_decomposition_mapping.rb', line 47 def tag @tag end |
Class Method Details
.tag(s) ⇒ Object
55 56 57 |
# File 'lib/forkforge/internal/character_decomposition_mapping.rb', line 55 def self.tag s Tag.new(s) end |
.tag?(s) ⇒ Boolean
58 59 60 |
# File 'lib/forkforge/internal/character_decomposition_mapping.rb', line 58 def self.tag? s self.tag(s).valid? end |
Instance Method Details
#valid? ⇒ Boolean
52 53 54 |
# File 'lib/forkforge/internal/character_decomposition_mapping.rb', line 52 def valid? !@tag.nil? && !@sym.nil? end |