I was able to implement a hack:
# if module has no name, try to parse out a namespace from #insepct.
# (yes, this is a hack!)
unless parent
if name.nil?
if /#/ =~ self.inspect
parent = Object.const_get($1) rescue nil
end
end
end
That seems to
Finally accepting the fact that autoload will never be fixed (i.e. there it
no way to override require to effect autoload's behavior) I decided to
try re-implementing autoload in Ruby itself.
So here's what I arrived at:
https://github.com/rubyworks/autoload/blob/master/lib/autoload.rb
I t
Hello,
Today we are proud to announce the release of Rack 1.4.2.
= 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
Hello,
Today we are proud to announce the release of Rack 1.2.6.
= 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
Hello,
Today we are proud to announce the release of Rack 1.3.8.
= 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
Hello,
Today we are proud to announce the release of Rack 1.4.3.
= 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
Hello,
Today we are proud to announce the release of Rack 1.3.7.
= 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
Hello,
Today we are proud to announce the release of Rack 1.1.4.
= 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
Hi,
2013/1/8 tamouse mailing lists :
> On Mon, Jan 7, 2013 at 12:01 AM, Matma Rex wrote:
>> On Mon, 07 Jan 2013 05:26:43 +0100, tamouse mailing lists
>> wrote:
>>
>>> On Sun, Jan 6, 2013 at 9:09 PM, windwiny wrote:
vs = (1..9).to_a
=> [1, 2, 3, 4, 5, 6, 7, 8, 9]
v1 = vs
On Tue, Jan 8, 2013 at 4:46 AM, Josh Cheek wrote:
> Hi, I want to be able to identify whether a line of code will return,
> because I want to modify it to capture it's return value. If it returns,
> this results in a syntax error:
Why do you need to modify the line? Can't you catch it at the cal
10 matches
Mail list logo