Method: Howzit::StringUtils#render_arguments
- Defined in:
- lib/howzit/stringutils.rb
#render_arguments ⇒ String
Render $X placeholders based on positional arguments
247 248 249 250 251 252 |
# File 'lib/howzit/stringutils.rb', line 247 def render_arguments str = dup str.render_named_placeholders str.render_numeric_placeholders Howzit.arguments.nil? ? str : str.gsub(/\$[@*]/, Shellwords.join(Howzit.arguments)) end |