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
virgo-0.2.9 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.2.8 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.2.7 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.2.6 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.2.5 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.2.4 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.2.2 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.2.1 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.2 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.1.16 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.1.15 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.1.14 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.1.13 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.1.12 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.1.11 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.1.10 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.1.8 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.1.7 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.1.6 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb
virgo-0.1.5 vendor/gems/shortcode/spec/support/presenters/my_presenter.rb