Class: TokenTrieNER::Code
- Inherits:
-
Object
- Object
- TokenTrieNER::Code
- Defined in:
- lib/rbbt/ner/token_trieNER.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(code, type = nil) ⇒ Code
constructor
A new instance of Code.
- #to_s ⇒ Object
Constructor Details
#initialize(code, type = nil) ⇒ Code
Returns a new instance of Code.
87 88 89 90 |
# File 'lib/rbbt/ner/token_trieNER.rb', line 87 def initialize(code, type = nil) @code = code @type = type end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
86 87 88 |
# File 'lib/rbbt/ner/token_trieNER.rb', line 86 def code @code end |
#type ⇒ Object
Returns the value of attribute type.
86 87 88 |
# File 'lib/rbbt/ner/token_trieNER.rb', line 86 def type @type end |
Instance Method Details
#to_s ⇒ Object
92 93 94 |
# File 'lib/rbbt/ner/token_trieNER.rb', line 92 def to_s [type, code] * ":" end |