Sha256: cb4c7227d5773c3a25c58b516530e53700c888f044fbe171dceaae1650792efa

Contents?: true

Size: 446 Bytes

Versions: 3

Compression:

Stored size: 446 Bytes

Contents

using AIXM::Refinements

module AIXM

  # Shortcut initializers
  CLASSES.each do |element, class_name|
    define_singleton_method(element) do |*args, **kwargs|
      class_name.to_class.new(*args, **kwargs)
    end
  end

  # Ground level
  GROUND = z(0, :qfe).freeze

  # Max flight level used to signal "no upper limit"
  UNLIMITED = z(999, :qne).freeze

  # Timetable used to signal "always active"
  H24 = timetable(code: :H24).freeze

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aixm-1.1.0 lib/aixm/shortcuts.rb
aixm-1.0.0 lib/aixm/shortcuts.rb
aixm-0.3.11 lib/aixm/shortcuts.rb