Skip to content

Instantly share code, notes, and snippets.

@murajun1978
Created May 15, 2014 15:11
Show Gist options
  • Save murajun1978/c2593bacb6e078ee51d6 to your computer and use it in GitHub Desktop.
Save murajun1978/c2593bacb6e078ee51d6 to your computer and use it in GitHub Desktop.
module Murajun
class String
def to_s
"murajun1978"
end
end
end
"Ruby".to_s # => "Ruby"
Murajun::String.new.to_s # => "murajun1978"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment