module RType::CoreExt::DelegateChecker

Public Instance Methods

can_delegate_to_R?(*args) click to toggle source
# File lib/r_type/core_ext/delegate_checker.rb, line 7
def can_delegate_to_R? *args
  is_robj_matrix? args.first
end
is_robj_matrix?(val) click to toggle source
# File lib/r_type/core_ext/delegate_checker.rb, line 3
def is_robj_matrix? val
  val.is_a?(RType::Vector) || val.is_a?(RType::Matrix)
end