Class: GFA::Field::String
- Inherits:
-
GFA::Field
- Object
- GFA::Field
- GFA::Field::String
- Defined in:
- lib/gfa/field/string.rb
Constant Summary collapse
- CODE =
:Z- REGEX =
/^[ !-~]+$/
Constants inherited from GFA::Field
Instance Attribute Summary
Attributes inherited from GFA::Field
Instance Method Summary collapse
-
#initialize(f) ⇒ String
constructor
A new instance of String.
Methods inherited from GFA::Field
#code, code_class, #hash, name_class, #regex, #to_s, #type
Constructor Details
#initialize(f) ⇒ String
Returns a new instance of String.
5 6 7 8 |
# File 'lib/gfa/field/string.rb', line 5 def initialize(f) GFA.assert_format(f, regex, "Bad #{type}") @value = f end |