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
virgo-0.1.4 vendor/gems/shortcode/spec/support/presenters/other_presenter.rb
shortcode-1.1.0 spec/support/presenters/other_presenter.rb