Class: VORuby::STC::V1_20::CoordEquinoxType
- Includes:
- XML::Mapping
- Defined in:
- lib/voruby/stc/stc_v1_20.rb,
lib/voruby/stc/stc_v1_20.rb
Overview
Coordinate equinox: Byear or Jyear with at least one decimal; do not use in conjunction with ICRS.
Instance Method Summary collapse
Instance Method Details
#value=(eq) ⇒ Object
197 198 199 200 |
# File 'lib/voruby/stc/stc_v1_20.rb', line 197 def value=(eq) raise "Coordinate equinox #{eq} in wrong format" if !eq.match(/^[BJ]\-?\d?\d?\d?\d\d\d\d\.\d\d?\d?$/) @value = eq end |