class Jubatus::Common::TNullable
Public Class Methods
new(type)
click to toggle source
# File lib/jubatus/common/types.rb, line 101 def initialize(type) @type = type end
Public Instance Methods
from_msgpack(m)
click to toggle source
# File lib/jubatus/common/types.rb, line 105 def from_msgpack(m) if m.nil? return nil else @type.from_msgpack(m) end end
to_msgpack(m)
click to toggle source
# File lib/jubatus/common/types.rb, line 113 def to_msgpack(m) if m.nil? nil else @type.to_msgpack(m) end end