Class: RType::Integer

Inherits:
Numeric show all
Defined in:
lib/r_type/type/integer.rb

Class Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Helper::RObjDelegatable

#==, #__getobj__, #as_r, included, #inspect, #robj, #robj=, #ruby_obj, #ruby_obj=, #to_ruby

Methods included from Helper::RObjDelegatable::ClassMethods

#delegate_constructor, #delegate_to_R

Methods included from CoreExt::NumericDelegateR

#*

Constructor Details

This class inherits a constructor from RType::Base

Class Method Details

.match?(robj, type) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/r_type/type/integer.rb', line 3

def self.match? robj, type
  type == 'integer'
end