Getting rid of self [Note: parts of this message were removed to make it a legal post.] Have you tried it like this? --- def initialize(attributes = nil) super attributes step = 0 national_debt = 0 sum_of_income = 0 sum_of_taxes = 0 sum_of_happiness = 0 ... 19 Jun 2010 12:22
unsubscribe [Note: parts of this message were removed to make it a legal post.] ... 15 Jun 2010 19:50
Simulating keystrokes for automated user input I've written a simple console app (type command. get results. repeat.) and I'm looking for a way to send it simulated keystrokes (hoping to remotely send commands through a socket connection and have them "typed" in the main console). I thought the solution would be easy but I'm finding it much harder than anticip... 16 Jun 2010 19:55
Execute ruby file from a ruby file Hi, I can't find out how can I execute my ruby script from another ruby file. This is how I would do it in command line ruby jobs/eventParser.rb "5454353" Greg -- Posted via http://www.ruby-forum.com/. ... 15 Jun 2010 16:30
Looking for some documentation. Hey Guys! Anyone know where I can find some documentation for using HTTP verbs in ruby? (GET, POST, PUT, DELETE). I'd tried digging through the documentation for curb & httparty, but they were a tad to terse or the examples didn't cover all the bases for me as I'm pretty new to the language. Anyone know where I can... 15 Jun 2010 16:30
datamapper blues I'm investigating the use of DataMapper to convert an old project with handwritten sql into something a bit more maintainable. Writing the model mappings etc. was quick and easy, then I ran into the following issue: I had a field defined as a timestamp in postgresql, and the old code was passing it a string in the ... 16 Jun 2010 22:07
check Fixnum Hi I have Fixnum. I want to check does this value integer or float, i. e. has .xx in the trail or not. How can I check this? Thanks in advance -- Posted via http://www.ruby-forum.com/. ... 15 Jun 2010 13:08
ruby spreadsheet german umlaute Hi! I'm having a problem with ruby's spreadsheet gem. while book = Spreadsheet.open 'aou/a.xls' works, book = Spreadsheet.open 'äöü/a.xls' does not (both paths exist). is there a solution? regards! ... 15 Jun 2010 10:54
[ANN] Rack 1.2.1, a modular Ruby webserver interface Hello, Today we are proud to announce the release of Rack 1.2.1. = Rack, a modular Ruby webserver interface Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API ... 15 Jun 2010 06:30
gsub: invalid byte sequence in US-ASCII I download the page http://www.ruby-forum.com/forum/4 using wget. Then i cat the file and pipe to gsub. I get: -e:1:in `gsub': invalid byte sequence in US-ASCII (ArgumentError) wget -q -k -O index11.html http://www.ruby-forum.com/forum/4 cat index11.html | ruby -pe 'gsub(/href=a\/"/,"href=\"'${base}'")' > ... 16 Jun 2010 01:16 |