Beschreibung:
The Ruby dynamic OO programming language.
|
|
|
newbie question
|
| |
Hello I noticed the following example somewhere def mymethod(opts) p opts end mymethod(:aaa => "something") I'm wondering what this :aaa stands for. If I omit the colon before the dummy aaa, it doesn't works. Thanks for any hint/light.
|
|
Pseudo array for Rails migration
|
| |
Consider N_X = 20 # size of pseudo array class CreatePeople < ActiveRecord::Migration create_table :people do |t| t.string :first_name , :null => false . . . t.integer :x00 t.integer :x01 t.integer :x02 . . . t.integer :x18... Mehr »
|
|
OCR of PDF-documents using GData
|
| |
Hi, Has anybody been able to perform OCR on a pdf document using GData? [link] Png and jpgs work fine after setting @client.version = '3' in GData::Client::DocList but when I try pdf-files I get: ...xmlns='[link]>... Mehr »
|
|
where to find the help document?
|
| |
Hello, How to find ruby's help document? for example, I want to know what's the difference between two functions of "p" and "print", but don't know where to search. Thanks.
|
|
Killing a thread
|
| |
This code starts my application in a windows thread fine but the last line does not kill the application that got fired up initially. How come? x = Thread.new do system('app.exe') end sleep 10 Thread.kill(x) David
|
|
10 Reasons Why YOU Should Join Us
|
| |
10 Reasons Why YOU Should Join Us The Most Proven Leisure Internet Business 1. Free Registration 2. Start Earning As Soon As You Join 3. Weekly Unlimited Income 4. Making Money Around The Clock 5. Without Leaving Your House 6. No Selling 7. No Need To See People For Sponsoring... Mehr »
|
|
Same name for class and instance method
|
| |
Newbie here. Consider the following two "say" methods. irb(main):020:0> class Test2 irb(main):021:1> def self.say(block) irb(main):022:2> block.call(self.class) irb(main):023:2> end irb(main):024:1> def say(block) irb(main):025:2> block.call(self.class) irb(main):026:2> end irb(main):027:1> end... Mehr »
|
|
How to alias_method_chain initialize from a mixin.
|
| |
Hi, I've been having a little trouble the past couple days getting an alias_method_chain working on the initialize method via a module getting mixed into a class. For example: - - - - - module Dsl def self.included(base) base.instance_eval do include InstanceMethods alias_method :initialize_without_block_supp ort, :initialize... Mehr »
|
|
|