Ruby for Kids

Introduction to Ruby

Ruby is an interpreted, object-oriented programming language. It is open source programming language with a focus on simplicity. Ruby is simple in appearance and It has an elegant syntax that is natural to read and easy to write. Everything is an object in Ruby. Every bit of information and code can be given their own properties and actions. In Ruby Object-oriented programming calls properties by the name instance variables and actions are known as methods. Ruby is a flexible language and it allows users to freely alter its parts.

Features of Ruby

  • Ruby has exception handling features
  • Ruby features a true mark-and-sweep garbage collector for all Ruby objects.
  • Writing C extensions in Ruby is easier than in Perl or Python. A SWIG interface is also available.
  • If an OS allows Ruby can load extension libraries dynamically.
  • OS independent threading
  • Ruby is highly portable

Ruby Programming Code

{`
  # The Greeter className
  className Greeter
  def initialize(name)
  @name = name.capitalize
  end

  def salute
  puts "Hello #{@name}!"
  end
  end
  # Create a new object
  g = Greeter.new("world")
  # Output "Hello World!"
  g.salute
  `}
Improve Your Grades with Custom Writing Help
Homework Help
Writing Help
Editing Services
Plagiarism check
Proofreading services
Research Project help
Custom writing services
scanner
E learning blogs

Disclaimer : The study tools and academic assistance/guidance through online tutoring sessions provided by AssignmentHelp.Net is to help and enable students to compete academically. The website does not provide ghostwriting services and has ZERO TOLERANCE towards misuse of the services. In case any user is found misusing our services, the user's account will be immediately terminated.