Module: FString
- Defined in:
- lib/fstring.rb,
lib/fstring/version.rb
Constant Summary collapse
- VERSION =
"1.0.2"
Class Method Summary collapse
Class Method Details
.patch_symbol! ⇒ Object
9 10 11 12 13 14 |
# File 'lib/fstring.rb', line 9 def patch_symbol! unless Symbol.method_defined?(:_original_to_s) Symbol.alias_method(:_original_to_s, :to_s) end Symbol.alias_method(:to_s, :name) end |
.unpatch_symbol! ⇒ Object
16 17 18 |
# File 'lib/fstring.rb', line 16 def unpatch_symbol! Symbol.alias_method(:to_s, :_original_to_s) end |