[#406402] How to quote variable of an array — sundar sundar <lists@...>
Consider the following example;
If you "p" (inspect) a string, then you'll get quotes because that's how
Joel Pearson wrote in post #1103948:
[#406418] Ruby Mechanize - Issue in parsing bugzilla page — Rochit Sen <lists@...>
Hi All,
[#406419] Recursion with Hash — Love U Ruby <lists@...>
h = {a: {b: {c: 23}}}
pretty simple:
tamouse mailing lists wrote in post #1103989:
On Mon, Apr 1, 2013 at 12:56 PM, Love U Ruby <lists@ruby-forum.com> wrote:
tamouse mailing lists wrote in post #1103993:
[#406463] C API version / functionality detection — William Fulton <lists@...>
What is a reliable and future proof way of detecting available functions
[#406465] Exclusively for Rubyists, a community on Facebook — "senthil k." <lists@...>
I was surprised to know that there is no community for Ruby Programming
Thing is, some people do not use Facebook and never will.
Yeah... but some people don't use email, or the internet, or computers. So
Email, internet and computers are an abundant technology. Facebook is a =
I understand the difference but what I am saying is that just because some
Yeah, I understood what you said. I'm pretty sure Marc did, too.
[#406528] Role of bundler in creating and installing a gem — Jon Cairns <lists@...>
Hi fellow rubyists,
On Fri, Apr 5, 2013 at 6:39 AM, Jon Cairns <lists@ruby-forum.com> wrote:
> Here is an example of a Gemfile and gemspec where you can see how I do
[#406554] Change fond color based on dark/light bg [Sinatra,HAML,CSS] — Panagiotis Atmatzidis <atma@...>
Dear Sirs,
[#406555] How do you know what the main file in Ruby Projects is? — peteV <pete0verse@...>
Hi Ruby people,
Subject: How do you know what the main file in Ruby Projects is?
Carlo E. Prelz wrote in post #1104616:
Actually its not wrong. What it does is explicitly state which ruby
On Sat, 6 Apr 2013, D. Deryl Downey wrote:
Matt Lawrence wrote in post #1104625:
On Sat, 6 Apr 2013, Hans Mackowiak wrote:
I'm interested in the issue with using env, but I find you explanation a but=
On Apr 6, 2013 8:03 AM, "Matthew Mongeau" <halogenandtoast@gmail.com> wrote:
On Sat, 06 Apr 2013 01:16:15 +0200, Matthew Kerwin <matthew@kerwin.net.au> wrote:
[#406565] Why call of custom method doesn't work? — Wins Lin <lists@...>
I have a code:
[#406593] Confusion with Forwarrordable#delegate - throwing an er — Love U Ruby <lists@...>
require 'forwardable'
[#406597] Writing to an open IO stream from a method. — "Yancy B." <lists@...>
I'm having an issue figuring out how to pass an IO stream to a method.
And as soon as I post this it starts working... WTF?
On Sun, Apr 7, 2013 at 9:46 PM, Yancy B. <lists@ruby-forum.com> wrote:
[#406600] Mapping string data ptr to buffer in ffi — se gm <lists@...>
I'm trying to implement some "shared memory" in Ruby, but I'm not sure
>Without
On 04/08/2013 07:41 AM, se gm wrote:
Subject: Re: Mapping string data ptr to buffer in ffi
>You need a method call, either from
[#406616] Accessing global variable in Unit Tests — T- Di <lists@...>
Hi,
[#406617] visual ruby - datetime in dropdown — Abhirama Sundram <lists@...>
Hi,
[#406626] regex confusion — Love U Ruby <lists@...>
I was trying to get some matches: as below
[#406633] uninstall Ruby 2.0 installed from source — marco tiraferri <lists@...>
Hallo,
[#406649] JRuby's Google Summer of Code 2013! — Charles Oliver Nutter <headius@...>
Hello, friends!
I'd be interested in being a student!
That's great! Look over the ideas, talk to us on IRC or mailing lists,
[#406683] confusion with Struct class — Love U Ruby <lists@...>
I went to there - http://www.ruby-doc.org/core-2.0/Struct.html but the
On Thu, Apr 11, 2013 at 10:45 AM, Love U Ruby <lists@ruby-forum.com> wrote:
Why does every time the has value getting changed,while the instance
On Thu, Apr 11, 2013 at 4:27 PM, Love U Ruby <lists@ruby-forum.com> wrote:
Robert Klemme wrote in post #1105267:
On Thu, Apr 11, 2013 at 4:59 PM, Love U Ruby <lists@ruby-forum.com> wrote:
Robert Klemme wrote in post #1105270:
The way you're teaching yourself ruby isn't good.
An alternative way to learn ruby would be to go and do the ruby koans.
Here is another confusion:
On Thu, Apr 11, 2013 at 7:38 PM, Love U Ruby <lists@ruby-forum.com> wrote:
[#406699] confusion with gets, if — Daniel ferrando <lists@...>
hi I'm new to ruby and im trying to write some simple codes but i cant
[#406739] Looking for a more elegant solution. — Shaw xx <lists@...>
I'm new to ruby and working on such a problem:
[#406748] SSL — Nokan Emiro <uzleepito@...>
Hi,
On Apr 13, 2013 4:19 AM, "Nokan Emiro" <uzleepito@gmail.com> wrote:
[#406761] Sending signal to win process — "Miroslav S." <lists@...>
Hello,
[#406762] Why does #content method in nokogiri not printing the full text? — Love U Ruby <lists@...>
Here is the documentation: http://www.rubydoc.info/gems/nokogiri/frames
On Sun, Apr 14, 2013 at 11:19 AM, Love U Ruby <lists@ruby-forum.com> wrote:
On Sun, Apr 14, 2013 at 11:59 AM, tamouse mailing lists
tamouse mailing lists wrote in post #1105601:
I see.
Just looking for a definition of the use: When should I need to think
On Apr 20, 2013 2:28 AM, "Love U Ruby" <lists@ruby-forum.com> wrote:
[#406782] simple lambda question — "Hyun Oh K." <lists@...>
hello, I am newbie for ruby.
[#406784] Wondering why no "increment" or "decrement" operator in ruby — tamouse mailing lists <tamouse.lists@...>
Seems like every other language I've encountered since learning C way
tamouse mailing lists wrote in post #1105638:
On Sun, Apr 14, 2013 at 10:23 PM, Matthew Kerwin <lists@ruby-forum.com> wrote:
On Mon, Apr 15, 2013 at 5:38 AM, tamouse mailing lists <
[#406815] How to get the only the partial of text — robert lengu <lists@...>
hi
[#406823] Delete method also deletes the original variable — Vincent Stowbunenko <lists@...>
Suppose a code is like this:
Vincent Stowbunenko wrote in post #1105954:
On Tue, Apr 16, 2013 at 9:10 PM, Matthew Kerwin <lists@ruby-forum.com>wrote:
[#406836] String index produces unanticipated result — Thomas Luedeke <lists@...>
I have the following string I am pulling from a file (asterisks used to
[#406845] Match against multiple patterns problem — Charles Hixson <charleshixsn@...>
What I would want to do, if it were legal code would be:
How about this?
On Thu, Apr 18, 2013 at 7:40 PM, Charles Hixson
[#406864] "gets" overwrites string - why does this happen? — Philip Rhoades <phil@...>
People,
[#406874] Input: sentence Modify: words Output: modified sentence — Philip Parker <lists@...>
I am new to Ruby. This is a programming interview question to use any
I generally don't approve of doing people's homework for them, but this
Joel Pearson wrote in post #1106334:
Thank you all! You are helping me to understand more complicated
[#406883] Problem installing shoes using the installer shoes-3.1.0.run — Ruby Student <ruby.student@...>
Hello everyone.
[#406912] Tap method : good or bad practice ? — Sébastien Durand <lists@...>
Hi all !
On Sun, Apr 21, 2013 at 12:56 AM, S=C3=A9bastien Durand <lists@ruby-forum.c=
On Sun, Apr 21, 2013 at 12:56 AM, S=E9bastien Durand <lists@ruby-forum.com>=
On Apr 21, 2013 5:21 PM, "Josh Cheek" <josh.cheek@gmail.com> wrote:
tamouse mailing lists wrote in post #1106508:
[#406928] POODR advice — Jes俍 Gabriel y Gal疣 <jgabrielygalan@...>
Hi,
[#406930] Question — Zakaria 0x7 <zakaria0x1@...>
Hi everybody ,
[#406936] BEGINNER -CLASS QUERY — shaik farooq <lists@...>
HEY as we know that the object conatins the instance variables that are
On Mon, Apr 22, 2013 at 3:45 PM, shaik farooq <lists@ruby-forum.com> wrote:
On Wed, Apr 24, 2013 at 12:29 AM, Ryan Davis <ryand-ruby@zenspider.com> wro=
Guyz u people have confused me i request u all to please come up with
So in ruby we dont declare the instance variables in class for instances
[#406944] SciRuby Summer of Code — Carlos Agarie <carlos.agarie@...>
SciRuby is a project that aims to bring scientific computation to Ruby.
[#406952] Problem with array variable — fox foxmaster <lists@...>
Hi all I have a problem with a small project I am working on.
[#406966] copying files syntax with FileUtils.rb (grr.) — Thomas Luedeke <lists@...>
In my Ruby scripting, there is probably no greater and chronic source of
[#406969] what is the $- magic global? — Matthew Kerwin <lists@...>
I've been searching for the past hour or so, including manually stepping
Also: I'm aware of bash's $- options description, but that doesn't seem
On Tue, Apr 23, 2013 at 9:21 PM, Matthew Kerwin <lists@ruby-forum.com> wrot=
If you try it on http://repl.it/, $- immediately returns nil. Perhaps on
It's just an ordinary global variable, and is disallowed now in the
[#406983] BEGINNER - Convert csv file to tsv — "Jon R." <lists@...>
Hi,
[#407000] Ruby multiline comments and Coffee — Jan Berdajs <lists@...>
Hey,
[#407044] ERB not working — "Rafael M." <lists@...>
The erb command is not working properly for me on ubuntu terminal
Hi,
[#407053] Issue with Selenium-webdriver — Love U Ruby <lists@...>
Hi,
[#407059] New Rexx like data structure — Peter Hickman <peterhickman386@...>
This is just something that I have been playing with for some time but I
On Mon, Apr 29, 2013 at 5:07 PM, Peter Hickman <
On Mon, Apr 29, 2013 at 5:29 PM, Robert Klemme
On 29 April 2013 16:33, Robert Klemme <shortcutter@googlemail.com> wrote:
[#407070] writing lines to a file — peteV <pete0verse@...>
I have a text file with on every line a magic card number and such info
Or you could do the whole operation with a single read, string
[#407079] How does Module#include differ from #prepend? — Love U Ruby <lists@...>
class Foo
[#407095] Rspec/rake note working — Tom Galpin <lists@...>
Working on a tutorial and starting to use TDD/rspec.
On Tue, Apr 30, 2013 at 2:15 AM, Tom Galpin <lists@ruby-forum.com> wrote:
[#407114] how to: convert string to DateTime object — Ana Bia <lists@...>
Hi, can someone please show an example of:
On Tue, Apr 30, 2013 at 12:18 PM, Ana Bia <lists@ruby-forum.com> wrote:
[#407123] is there any performance difference between Range#include? and Range#cover? — Love U Ruby <lists@...>
I used once `cover?` and again `include?`. Both are looking same as per
I'd expect cover to perform better in a benchmark, since it checks the
Re: Rspec/rake note working
On Tue, Apr 30, 2013 at 2:15 AM, Tom Galpin <lists@ruby-forum.com> wrote:
> Working on a tutorial and starting to use TDD/rspec.
>
> For some reason I cannot get it to work. Been working trying to fix
> this over two days now.
>
> The tutorial has given me a Rakefile that should work. I also have a
> spec file and I am creating a file to pass the tests.
>
> I am supposed to run 'rake' in my console to have it return the passing
> or failing tests, but each time (no matter how much I move things
> around) I get the following message (as if the 'hello.rb' file doesn't
> exist):
>
> in /Users/******/Desktop/********/learn_ruby)
> /Users/*******/Desktop/******/learn_ruby/00_hello/hello_spec.rb:116:in
> `require': cannot load such file -- hello (LoadError)
You are probably not setting up the load path correctly for it to be
able to find hello.rb. If it's in the same directory as hello_spec.rb,
you should be able to just give:
require './hello'
in hello_spec.rb; the './' says to use the current directory as the
current file. If this isn't the case, more work will be required.
And let me say: Good for you! :)