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.
99 100 101 102 |
# File 'lib/rbbt/ner/token_trieNER.rb', line 99 def initialize(code, type = nil) @code = code @type = type end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
98 99 100 |
# File 'lib/rbbt/ner/token_trieNER.rb', line 98 def code @code end |
#type ⇒ Object
Returns the value of attribute type.
98 99 100 |
# File 'lib/rbbt/ner/token_trieNER.rb', line 98 def type @type end |
Instance Method Details
#to_s ⇒ Object
104 105 106 |
# File 'lib/rbbt/ner/token_trieNER.rb', line 104 def to_s [type, code] * ":" end |