Class: Shields::AnchorHrefTemplate

Inherits:
Object
  • Object
show all
Defined in:
lib/shields/anchor_href_template.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ AnchorHrefTemplate

Returns a new instance of AnchorHrefTemplate.



3
4
5
# File 'lib/shields/anchor_href_template.rb', line 3

def initialize(path)
  @path = path
end

Instance Method Details

#call(**args) ⇒ Object



7
8
9
# File 'lib/shields/anchor_href_template.rb', line 7

def call(**args)
  @path % args
end