Sha256: cea5b8ff04d1a8fd5345f3badd660a66079652a8f6c1937ed3fbb7c70fbdc743

Contents?: true

Size: 386 Bytes

Versions: 15

Compression:

Stored size: 386 Bytes

Contents

module AppleNews
  module Property
    class Anchor < Base
      required_property :target_anchor_position
      optional_properties :origin_anchor_position, :range_length, :range_start,
                          :target_component_identifier

      def valid?
        super && [
          'top', 'center', 'bottom'
        ].include?(target_anchor_position)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
apple-news-0.5.1 lib/apple-news/properties/anchor.rb
apple-news-0.5.0 lib/apple-news/properties/anchor.rb
apple-news-0.4.2 lib/apple-news/properties/anchor.rb
apple-news-0.4.1 lib/apple-news/properties/anchor.rb
apple-news-0.4.0 lib/apple-news/properties/anchor.rb
apple-news-0.3.1 lib/apple-news/properties/anchor.rb
apple-news-0.3.0 lib/apple-news/properties/anchor.rb
apple-news-0.2.5 lib/apple-news/properties/anchor.rb
apple-news-0.2.4 lib/apple-news/properties/anchor.rb
apple-news-0.2.3 lib/apple-news/properties/anchor.rb
apple-news-0.2.2 lib/apple-news/properties/anchor.rb
apple-news-0.2.1 lib/apple-news/properties/anchor.rb
apple-news-0.2.0 lib/apple-news/properties/anchor.rb
apple-news-0.1.1 lib/apple-news/properties/anchor.rb
apple-news-0.1.0 lib/apple-news/properties/anchor.rb