1. Technology

Articles related to using ruby require

Is the "Require" Method Overlooked in Ruby? - About.com
However, if the argument is a shortened name, the require method will search through a number of pre-defined directories on your system for that file. Using the  ...
http://ruby.about.com/od/rubyfeatures/a/require.htm
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 ...
http://ruby.about.com/od/rubysbasicfeatures/ss/Load-Vs-Require.htm
A Quick Peek at Ruby: 'Include' vs. 'Require' - About.com
Oct 23, 2008 ... What's the difference between "include" and "require" in Ruby? ... Young woman using digital tablet at table - Izabela Habur/E+/Getty Images.
http://ruby.about.com/b/2008/10/23/a-quick-peek-at-ruby-include-vs-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
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 ...
http://ruby.about.com/od/tasks/a/The-Json-Gem.htm
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 ...
http://ruby.about.com/od/networking/qt/twittergem.htm
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('.
http://ruby.about.com/od/beginningruby/ss/Getting-Information-About-A-File-In-Ruby-Using-File-Stat.htm
Using Temporary Files - Ruby - About.com
usr/bin/env ruby require 'tempfile' # Short-term use Tempfile.open('my_program') do|f| puts "Tempfile opened at #{f.path}" f.puts "Putting some text into the file" ...
http://ruby.about.com/od/beginningruby/a/dir4.htm
Optional Method Parameters with Hashes - Ruby - About.com
Using hashes to simulate optional named parameters in methods. ... &ensp. #!/ usr/bin/env ruby require 'activesupport' def my_method( o={} ) o.reverse_merge!
http://ruby.about.com/od/advancedruby/qt/opthash.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
1  |  2  |  3  |  4  |  5  |  6  |  7  |  8  |  9  |  10      Next

©2014 About.com. All rights reserved.