Class: CRFPP::Macro
- Inherits:
-
Struct
- Object
- Struct
- CRFPP::Macro
- Defined in:
- lib/crfpp/macro.rb
Constant Summary collapse
- TEMPLATE =
'%%x[%d,%d]'.freeze
Instance Attribute Summary collapse
-
#column ⇒ Object
(also: #col)
Returns the value of attribute column.
-
#row ⇒ Object
Returns the value of attribute row.
Instance Method Summary collapse
-
#initialize(row = 0, column = 0) ⇒ Macro
constructor
A new instance of Macro.
- #to_s ⇒ Object
Constructor Details
#initialize(row = 0, column = 0) ⇒ Macro
Returns a new instance of Macro.
8 9 10 |
# File 'lib/crfpp/macro.rb', line 8 def initialize(row = 0, column = 0) super end |
Instance Attribute Details
#column ⇒ Object Also known as: col
Returns the value of attribute column
2 3 4 |
# File 'lib/crfpp/macro.rb', line 2 def column @column end |
#row ⇒ Object
Returns the value of attribute row
2 3 4 |
# File 'lib/crfpp/macro.rb', line 2 def row @row end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/crfpp/macro.rb', line 12 def to_s TEMPLATE % values end |