Module: SeisRuby::Data::Sac::Head::StringConverter
- Defined in:
- lib/seis_ruby/data/sac/head.rb
Constant Summary collapse
- UNDEFINED =
'-12345'
Class Method Summary collapse
Class Method Details
.from_head(str) ⇒ Object
129 130 131 132 133 |
# File 'lib/seis_ruby/data/sac/head.rb', line 129 def self.from_head(str) stripped_str = str.to_s.strip return nil if stripped_str == UNDEFINED stripped_str end |
.to_head(str) ⇒ Object
135 136 137 138 |
# File 'lib/seis_ruby/data/sac/head.rb', line 135 def self.to_head(str) return UNDEFINED if str.nil? str.to_s.strip end |