Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/puppet-lint/monkeypatches.rb
Overview
monkeypatch String#prepend into Ruby 1.8.7
Instance Method Summary collapse
Instance Method Details
#prepend(lead) ⇒ Object
47 48 49 |
# File 'lib/puppet-lint/monkeypatches.rb', line 47 def prepend(lead) replace("#{lead}#{self}") end |