Class: Shields::LabelTextTemplate
- Inherits:
-
Object
- Object
- Shields::LabelTextTemplate
- Defined in:
- lib/shields/label_text_template.rb
Instance Method Summary collapse
-
#call(**args) ⇒ Object
-
#initialize(msg) ⇒ LabelTextTemplate
constructor
A new instance of LabelTextTemplate.
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 |