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 ...
Load Vs. Require - Ruby - About.com
How do you load code into a Ruby program? There are two ways to do this. You' re probably familiar with the ever-present require method, but what about its ...
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 ...
A Quick Peek at Ruby: 'Include' vs. 'Require' - About.com
Oct 23, 2008 ... What's the difference between "include" and "require" in Ruby? ... This is a language-level thing as opposed to a file-level thing as with require.
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' (after a prerequisite require 'rubygems' if needed) will require ...
How to Use the Twitter Gem for Ruby - About.com
Using the Twitter RubyGem, making API requests to Twitter is even easier than using the twitter ... usr/bin/env ruby require 'rubygems' require 'twitter' twitter ...
Accessing Ruby Environment Variables - About.com
RUBYLIB - The list of paths here will be added to the list of paths Ruby uses to search for libraries included in the program with the require method. The paths in  ...
Use OptionParser to Parse Commands in Ruby - About.com
usr/bin/env ruby require 'optparse' require 'pp' # This hash will hold all of the options # parsed from the command-line by # OptionParser. options = {} optparse  ...
Getting Information About a File in Ruby Using File::Stat - About.com
... subdirectories of the current directory. This is achieved using the find library included with Ruby. #!/usr/bin/env ruby require "find" files = [] total = 0 Find.find('.
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 ...
1  |  2  |  3  |  4  |  5  |  6  |  7  |  8  |  9  |  10      Next

©2014 About.com. All rights reserved.