Class: RVM::Functions::RailsPrint

Inherits:
Function
  • Object
show all
Defined in:
lib/rvm/functions/rails/print.rb

Overview

This function is part of the Rails extention for rVM. It does not more then taking all it’s arguments, converting them to a strong by calling to_s and then concatinates them.

Then are appended to the :render variable that should be used to return the output of all print functions in the end.

Class Method Summary collapse

Methods inherited from Function

call, data_type, execargs, method_missing

Methods included from Plugin

#helper, #included, #plugin_host, #plugin_id, #register_for

Class Method Details

.execute(params, env) ⇒ Object



35
36
37
38
39
# File 'lib/rvm/functions/rails/print.rb', line 35

def execute params, env
  params.each do |p|
    env.read_var_val(:render) << p.to_s
  end
end

.signatureObject



41
42
43
# File 'lib/rvm/functions/rails/print.rb', line 41

def signature
  [:any] 
end