Sha256: 2f666f3364ab6a40d9e63e3bddc6d40b75dd511e779ab6808a7eb2201f1de377

Contents?: true

Size: 314 Bytes

Versions: 46

Compression:

Stored size: 314 Bytes

Contents

class MyPresenter

  def self.for
    :quote
  end

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

  def content
    @content
  end

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

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
shortcode-1.2.1 spec/support/presenters/my_presenter.rb
shortcode-1.2.0 spec/support/presenters/my_presenter.rb
virgo-0.3.17 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.3.16 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.3.15 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.3.14 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.3.13 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.3.12 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.3.11 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.3.10 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.3.9 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.3.8 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.3.7 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.3.6 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
shortcode-1.1.1 spec/support/presenters/my_presenter.rb
virgo-0.3.4 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.3.3 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.3.2 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.3.1 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.3 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb