require
Require two identically named classes in ruby
In my rails application I connect to another ruby application foo that has a class Database in its folder /classes/database.rb and to another application bar that has another class Databse in its fold[详细]
2023-03-06 22:41 分类:问答How can I trap LoadError exceptions in Ruby 1.9 and 1.8?
I have a bunch of Ruby 1.8.开发者_运维问答x scripts that require ftools. How can I make these scripts stop throwing exceptions when I run them in ruby 1.9?[详细]
2023-03-06 15:50 分类:问答Perl : constant & require
I have a config file (config.pl) with my constants : #!/usr/bin/perl use strict; use warnings; use Net::Domain qw(hostname hostfqdn hostdomain domainname);[详细]
2023-03-04 22:15 分类:问答Lua: Include file in the same directory
I\'m using IMAPFilter, and I\'d like to keep my global configuration in a public repository, while keeping the local (and secret) configuration in a separate file. So I\'m running imapfilter from some[详细]
2023-03-04 05:54 分类:问答IE 7 & 8 javascript file undesirably caching with require.js
I have a page javascript page.js being loaded with require.js.The call to the page.js is placed on the bottom of the page after the calls to require.js and is as follows:[详细]
2023-03-01 03:51 分类:问答Ruby - free up memory used by required gems?
Is there a way to free up memory used by required gems? My Rails app grows in memory usage and I would like to use gems only when I need them and after that free them up, IF this is po开发者_如何学JAV[详细]
2023-02-25 11:10 分类:问答Rails engine 'require' prefix
If i have a gem \'foo\' (Which is engine-based), how can i say that all files included in it will need the \'foo/\' prefix when \'require\'开发者_如何学Going them?[详细]
2023-02-24 06:07 分类:问答Require Method in Ruby
I have been searching around but I cant seem to find any answers for this problem. I am required to write a program that will use the reflection methods built into ruby to tell me information about a[详细]
2023-02-22 06:05 分类:问答Include Perl class file
I have a Perl class file (package): person.pl package person; sub create { my $this = { name =>开发者_开发问答 undef,[详细]
2023-02-22 00:58 分类:问答Ruby - LoadError on require
I have the following two files: main.rb and sort.rb开发者_开发知识库 located in the same folder. In main.rb I have the following code:[详细]
2023-02-21 23:13 分类:问答