Sha256: e687083c4aff6c56435107fd91151fa20da6c734fdbe1d1b3030458e73449d2d

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

module AppleNews
  module Component
    class Base
      include Properties

      optional_properties :identifier, :layout, :style

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

      def role
        self.class.role
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
apple-news-0.1.1 lib/apple-news/components/base.rb
apple-news-0.1.0 lib/apple-news/components/base.rb