Class: TextUtils::TitleMapper2::MappingStruct
- Inherits:
-
Struct
- Object
- Struct
- TextUtils::TitleMapper2::MappingStruct
- Defined in:
- lib/textutils/title_mapper2.rb
Overview
key: e.g. augsburg
title: e.g. FC Augsburg
length (of title - not pattern): e.g. 11 -- do not count dots (e.g. U.S.A. => 3 or 6) why? why not?
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#length ⇒ Object
Returns the value of attribute length.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key
21 22 23 |
# File 'lib/textutils/title_mapper2.rb', line 21 def key @key end |
#length ⇒ Object
Returns the value of attribute length
21 22 23 |
# File 'lib/textutils/title_mapper2.rb', line 21 def length @length end |
#pattern ⇒ Object
Returns the value of attribute pattern
21 22 23 |
# File 'lib/textutils/title_mapper2.rb', line 21 def pattern @pattern end |
#title ⇒ Object
Returns the value of attribute title
21 22 23 |
# File 'lib/textutils/title_mapper2.rb', line 21 def title @title end |