Module: RubyGLS::Helper
- Included in:
- Connection
- Defined in:
- lib/ruby-gls/helper.rb
Instance Method Summary collapse
Instance Method Details
#replace_string(full, substring, to_replace) ⇒ Object
3 4 5 |
# File 'lib/ruby-gls/helper.rb', line 3 def replace_string(full, substring, to_replace) full.sub!(substring, to_replace.to_s) end |