--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Format - Uses str as a format specification, and returns the result of applying it to arg. If the format specification contains more than one substitution, then arg must be an Array containing the values to be substituted. See Kernel::sprintf for details of the format string. This is the default behavior of the String class.
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: "arg: an Array or other class except Hash."
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: "Returns: formatted String"
  type: :BULLET
- !ruby/struct:SM::Flow::VERB 
  body: " (e.g.) &quot;%s, %s&quot; % [&quot;Masao&quot;, &quot;Mutoh&quot;]\n"
- !ruby/struct:SM::Flow::P 
  body: Also you can use a Hash as the &quot;named argument&quot;. This is recommanded way for Ruby-GetText because the translators can understand the meanings of the msgids easily.
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: "hash: {:key1 =&gt; value1, :key2 =&gt; value2, ... }"
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: "Returns: formatted String"
  type: :BULLET
- !ruby/struct:SM::Flow::VERB 
  body: " (e.g.) &quot;%{firstname}, %{familyname}&quot; % {:firstname =&gt; &quot;Masao&quot;, :familyname =&gt; &quot;Mutoh&quot;}\n"
full_name: String#%
is_singleton: false
name: "%"
params: |
  %(arg)
  %(hash)

visibility: public
