/ Published in: Ruby
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
def my_function( a )
puts "Hello, #{a}"
return a.length
end
len = my_function( "Giraffe" )
puts "My secret word is #{len} long"
Comments
 Subscribe to comments
                    Subscribe to comments
                
                