Class: Shields::LabelTextTemplate

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

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ LabelTextTemplate

Returns a new instance of LabelTextTemplate.



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

def initialize(msg)
  @msg = msg
end

Instance Method Details

#call(**args) ⇒ Object



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

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