Sha256: 74210f2b09f928ed9138a06f69135896a2119a80237e6ca34059b2d735d0d619

Contents?: true

Size: 401 Bytes

Versions: 2

Compression:

Stored size: 401 Bytes

Contents

class RubyProcess
  #Returns a numeric value like a integer. This methods exists because it isnt possible to do: "Integer.new(5)".
  #===Examples
  # proxy_int = rp.numeric(5)
  # proxy_int.__rp_marshal #=> 5
  def numeric(val)
    return send(cmd: :numeric, val: val)
  end

  #Process-method for the 'numeric'-method.
  def cmd_numeric(obj)
    return handle_return_object(obj[:val].to_i)
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
ruby_process-0.0.13 cmds/numeric.rb
RubyProcess-0.0.12 cmds/numeric.rb