Class: AppleNews::Property::Anchor

Inherits:
Base
  • Object
show all
Defined in:
lib/apple-news/properties/anchor.rb

Instance Method Summary collapse

Methods included from AppleNews::Properties

#initialize, #load_properties

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


8
9
10
11
12
# File 'lib/apple-news/properties/anchor.rb', line 8

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