Sha256: 34971c4b34e03328e6ab9a2fe565ad51c1736e9838c52dcd841e9e8ba8177890

Contents?: true

Size: 422 Bytes

Versions: 13

Compression:

Stored size: 422 Bytes

Contents

module AppleNews
  module Component
    class Base
      include Properties

      optional_property :identifier
      optional_property :layout, nil, ComponentLayout
      optional_property :style, nil, Style::Component

      def self.role(val = nil)
        val.nil? ? _required_property_map[:role][:default] : required_property(:role, val)
      end

      def role
        self.class.role
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
apple-news-0.5.1 lib/apple-news/components/base.rb
apple-news-0.5.0 lib/apple-news/components/base.rb
apple-news-0.4.2 lib/apple-news/components/base.rb
apple-news-0.4.1 lib/apple-news/components/base.rb
apple-news-0.4.0 lib/apple-news/components/base.rb
apple-news-0.3.1 lib/apple-news/components/base.rb
apple-news-0.3.0 lib/apple-news/components/base.rb
apple-news-0.2.5 lib/apple-news/components/base.rb
apple-news-0.2.4 lib/apple-news/components/base.rb
apple-news-0.2.3 lib/apple-news/components/base.rb
apple-news-0.2.2 lib/apple-news/components/base.rb
apple-news-0.2.1 lib/apple-news/components/base.rb
apple-news-0.2.0 lib/apple-news/components/base.rb