Top 50 Ruby on rails interview questions and answers

1) Explain what is Ruby on Rails? 2) Explain what is class libraries in Ruby? Class libraries in Ruby consist of a variety of domains, such as data types, thread…

Read more »

Top 100 Ruby Programming interview questions and answers.

1) What is Ruby programming language? Ruby is a dynamic, reflective, open source programming language that aims on simplicity and productivity.Ruby has a blended functions of Perl, small talk, Eiffel,…

Read more »

How to verify of cobertura.jar file is loaded into jvm

scmuser created the topic: How to verify of cobertura.jar file is loaded into jvm How to verify of cobertura.jar file is loaded into jvm? I have instrumented class but Automated…

Read more »

Could not find or load main class net.sourceforge.cobertura.instrument

scmuser replied the topic: Could not find or load main class net.sourceforge.cobertura.instrument Still could not resolve the issues as below; [code language=”css”] C:\Users\rkumar11>cd C:\cobertura [/code] [code language=”css”] C:\cobertura>cobertura-check.bat Error: Could…

Read more »

A simple Ruby method to send email

scmuser created the topic: A simple Ruby method to send email A simple Ruby method to send email [code language=”css”] require ‘net/smtp’ def send_email(to,opts={}) opts[:server] ||= ‘localhost’ opts[:from] ||= ’email@example.com’…

Read more »

Add each array element to the lines of a file in ruby

scmuser created the topic: Add each array element to the lines of a file in ruby Add each array element to the lines of a file in ruby Either use…

Read more »

What is the way to iterate through an array in Ruby?

scmuser created the topic: What is the way to iterate through an array in Ruby? What is the way to iterate through an array in Ruby? This will iterate through…

Read more »

Short Notes – Ruby Arrays- Insert, Append, length, Index, Removed

scmuser created the topic: Short Notes – Ruby Arrays- Insert, Append, length, Index, Removed Short Notes – Ruby Arrays- Insert, Append, length, Index, Removed Create a Ruby Array [code language=”css”]…

Read more »

Common ways to read a file in Ruby?

scmuser created the topic: Common ways to read a file in Ruby? [code language=”css”] File.open(“my/file/path”, “r”) do |f| f.each_line do |line| puts line end end # File is closed automatically…

Read more »

How to process every line in a text file with Ruby

scmuser created the topic: How to process every line in a text file with Ruby Example 1 [code language=”css”] # ruby sample code. # process every line in a text…

Read more »