Class: DTAUS::Satz
- Inherits:
-
Object
- Object
- DTAUS::Satz
- Defined in:
- lib/dtaus/validator.rb
Instance Attribute Summary collapse
-
#string ⇒ Object
readonly
Returns the value of attribute string.
Instance Method Summary collapse
-
#initialize(string) ⇒ Satz
constructor
A new instance of Satz.
- #satzart ⇒ Object
- #satzlaenge ⇒ Object
Constructor Details
#initialize(string) ⇒ Satz
Returns a new instance of Satz.
29 30 31 |
# File 'lib/dtaus/validator.rb', line 29 def initialize(string) @string = string end |
Instance Attribute Details
#string ⇒ Object (readonly)
Returns the value of attribute string.
27 28 29 |
# File 'lib/dtaus/validator.rb', line 27 def string @string end |
Instance Method Details
#satzart ⇒ Object
37 38 39 |
# File 'lib/dtaus/validator.rb', line 37 def satzart @string[4..4] end |
#satzlaenge ⇒ Object
33 34 35 |
# File 'lib/dtaus/validator.rb', line 33 def satzlaenge @string[0..3] end |