Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/simpler.rb

Instance Method Summary collapse

Instance Method Details

#to_r(varname = nil) ⇒ Object



7
8
9
10
# File 'lib/simpler.rb', line 7

def to_r(varname=nil)
  varname ||= Simpler.varname(self)
  "#{varname} <- c(#{self.join(',')})\n"
end