class Milestoner::Views::Scopes::TagSignature

The tag signature specific behavior for partials.

Public Class Methods

new(part: Parts::Tag.new(value: Models::Tag.new), **) click to toggle source
Calls superclass method
# File lib/milestoner/views/scopes/tag_signature.rb, line 10
def initialize(part: Parts::Tag.new(value: Models::Tag.new), **)
  @part = part
  super(**)
end

Public Instance Methods

call() click to toggle source
# File lib/milestoner/views/scopes/tag_signature.rb, line 17
def call
  tag.signature ? render("milestones/tag-secure") : render("milestones/tag-insecure")
end
tag(= locals.fetch :tag, part) click to toggle source
# File lib/milestoner/views/scopes/tag_signature.rb, line 15
  def tag = locals.fetch :tag, part

  def call
    tag.signature ? render("milestones/tag-secure") : render("milestones/tag-insecure")
  end

  private

  attr_reader :part
end