Sha256: 62b09441b86a0fbc7d006b5b36154157bb3d0f6de585cc8bac1869d547027a51

Contents?: true

Size: 384 Bytes

Versions: 3

Compression:

Stored size: 384 Bytes

Contents

module Stylish
  class Component
    include Stylish::Model
    include Stylish::Fs

    attribute :name, String
    attribute :category, String
    attribute :tags, Array
    attribute :path, Pathname

    attribute :template_path, String
    attribute :script_path, String
    attribute :stylesheet_path, String

    def persistable_contents
      as_json.to_json
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stylish-0.3.1 lib/stylish/models/component.rb
stylish-0.3.0 lib/stylish/models/component.rb
stylish-0.0.2 lib/stylish/models/component.rb