Sha256: f98ee1e1ef45df97e5972e2d85275d674732450d6cbf39121789eeb6eac7ad8c

Contents?: true

Size: 317 Bytes

Versions: 42

Compression:

Stored size: 317 Bytes

Contents

class OtherPresenter

  def self.for
    :other
  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

42 entries across 42 versions & 2 rubygems

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