1. Tech

Articles related to using ruby require

Is the "Require" Method Overlooked in Ruby? - About.com
The 'require' method is the reusable code mechanism in Ruby. ... This file loads the test_library.rb file using the require method and creates a new TestClass ...
http://ruby.about.com/od/rubyfeatures/a/require.htm
Using Logger Library: How to Write Log Files in Ruby - About.com
Since the logger library comes with Ruby, there's no need to install any gems or other libraries. To begin using the logger library, simply require 'logger' and ...
http://ruby.about.com/od/tasks/a/logger.htm
Load Vs. Require - Ruby - About.com
This will include various paths in your system where Ruby's standard library lives, as well as some other things If you're using Rubygems, when the Rubygems ...
http://ruby.about.com/od/rubysbasicfeatures/ss/Load-Vs-Require.htm
Using JSON: The JSON Gem - Ruby
It's easy to jump into parsing and generating JSON in Ruby with the json gem. ... A require 'json/pure' will explicitly require the pure variant, and a require ...
http://ruby.about.com/od/tasks/a/The-Json-Gem.htm
Accessing Ruby Environment Variables - About.com
Using environment variables in Ruby. ... here will be added to the list of paths Ruby uses to search for libraries included in the program with the require method .
http://ruby.about.com/od/rubyfeatures/a/envvar.htm
Using the Enumerable Module - Ruby - About.com
You can iterate over many different types of objects in Ruby using the same set of methods ... These methods require the elements of the collection to support the ...
http://ruby.about.com/od/advancedruby/ss/Using-The-Enumerable-Module.htm
Getting Information About a File in Ruby Using File::Stat - About.com
Getting Information About a File in Ruby Using File::Stat. By Michael Morin .... usr/ bin/env ruby require "find" files = [] total = 0 Find.find('.') do|f| files. 1 of 1. 1 ...
http://ruby.about.com/od/beginningruby/ss/Getting-Information-About-A-File-In-Ruby-Using-File-Stat.htm
Using Temporary Files - Ruby - About.com
There are many hidden pitfalls when using temporary files. Ruby's ... usr/bin/env ruby require 'tempfile' # Short-term use Tempfile.open('my_program') do|f| puts ...
http://ruby.about.com/od/beginningruby/a/dir4.htm
A Quick Peek at Ruby: 'Include' vs. 'Require' - About.com
Oct 23, 2008 ... What's the difference between "include" and "require" in Ruby? Answer: The include ... A Simple Guide to Using the Command Line in Ruby.
http://ruby.about.com/b/2008/10/23/a-quick-peek-at-ruby-include-vs-require.htm
Use OptionParser to Parse Commands in Ruby - About.com
Using OptionParser to parse command line options is a preferable ... In the article discussing OptionParser's features we discussed some of the reasons that make using OptionParser in Ruby preferable to looking through ... require 'optparse'
http://ruby.about.com/od/advancedruby/a/optionparser2.htm
1  |  2  |  3  |  4  |  5  |  6  |  7  |  8  |  9  |  10      Next

©2015 About.com. All rights reserved.