Sha256: 97d024845467a7263602ad1246f5cf9332fa5e90d91b50107b65b7be2ece4ec3

Contents?: true

Size: 306 Bytes

Versions: 2

Compression:

Stored size: 306 Bytes

Contents

class MyPresenter

  def self.for
    :quote
  end

  def initialize(_attributes, content, additional_attributes)
    @content = content
    @additional_attributes = additional_attributes
  end

  attr_reader :content

  def attributes
    @additional_attributes || { title: "my custom title" }
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shortcode-2.0.0 spec/support/presenters/my_presenter.rb
shortcode-2.0.0.pre spec/support/presenters/my_presenter.rb