Sha256: 2d28ae1caf918bd4aa6f97f6ad4467c1ccf41884f74a0add8e8e74afc6e9b007

Contents?: true

Size: 575 Bytes

Versions: 1

Compression:

Stored size: 575 Bytes

Contents

module Rocx
  module Properties
    class EastAsianLayout < ComplexProperty
      include AttributeBuilder

      VALID_BRACKETS = %i(angle curly none round square)

      attribute :combine, expects: :on_or_off
      attribute :combine_brackets, expects: :valid_bracket
      attribute :id, expects: :integer
      attribute :vertical, expects: :on_or_off, displays_as: :vert
      attribute :vertical_compress, expects: :on_or_off, displays_as: :vertCompress

    private

      def valid_bracket(value)
        valid_in? value, VALID_BRACKETS
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rocx-0.5.8 lib/rocx/properties/east_asian_layout.rb