Class: Range

Inherits:
Object
  • Object
show all
Includes:
Renjin::RBSexp
Defined in:
lib/JRubyR/ruby_classes.rb

Overview

Direct Known Subclasses

NegRange

Instance Attribute Summary

Attributes included from Renjin::RBSexp

#attr, #rvar, #scope, #sexp

Instance Method Summary collapse

Methods included from Renjin::RBSexp

#destroy, #ncol, #nrow, #pp, #print, #r, #rclass, #sexp?, #typeof, #unbind

Instance Method Details

#-@Object


Defines unary minus operation for ranges




35
36
37
# File 'lib/JRubyR/ruby_classes.rb', line 35

def -@
  NegRange.new(self.begin, self.end)
end