Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/protobuf/enum.rb

Overview

Adding extension to Numeric until we can get people to stop calling #value on Enum instances.

Instance Method Summary collapse

Instance Method Details

#valueObject



12
13
14
15
16
17
18
# File 'lib/protobuf/enum.rb', line 12

def value
  $stderr.puts <<-DEPRECATION
[DEPRECATED] Enum#value is deprecated and will be removed in the next release.
          Use Enum#to_i instead.
DEPRECATION
  self
end