aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/lib/grpc/generic/service.rb
diff options
context:
space:
mode:
authorGravatar Tim Emiola <temiola@google.com>2015-05-07 14:24:23 -0700
committerGravatar Tim Emiola <temiola@google.com>2015-05-07 14:24:23 -0700
commitbae3a61087d5ff4d5f25c1d6b4881e0f46c034c7 (patch)
tree225f8463557399b9fef92b8dfbe476733cadb9ee /src/ruby/lib/grpc/generic/service.rb
parent13363e31a749fbe5065d66383a0acecbe5ab02fe (diff)
Really removes the string monkey-patch
Diffstat (limited to 'src/ruby/lib/grpc/generic/service.rb')
-rw-r--r--src/ruby/lib/grpc/generic/service.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/ruby/lib/grpc/generic/service.rb b/src/ruby/lib/grpc/generic/service.rb
index 2226820c2b..8ea2c82f17 100644
--- a/src/ruby/lib/grpc/generic/service.rb
+++ b/src/ruby/lib/grpc/generic/service.rb
@@ -30,24 +30,6 @@
require 'grpc/generic/client_stub'
require 'grpc/generic/rpc_desc'
-# Extend String to add a method underscore
-class String
- # creates a new string that is the underscore separate version of this one.
- #
- # E.g,
- # PrintHTML -> print_html
- # AMethod -> a_method
- # AnRpc -> an_rpc
- def underscore
- word = dup
- word.gsub!(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
- word.gsub!(/([a-z\d])([A-Z])/, '\1_\2')
- word.tr!('-', '_')
- word.downcase!
- word
- end
-end
-
# GRPC contains the General RPC module.
module GRPC
# Provides behaviour used to implement schema-derived service classes.