Does anyone know enough about Ruby\'s require to tell me if the following is valid syntax: class Something
This page on the IronRuby help website talks about being able to \'require\' some well-known assemblies such as System.Windows.Forms without needing to crank out the entire \'ah-come-on-gimme-a-break-
I have a lot of sites - all hosted on my server. I want one of them to access file from /vhos开发者_高级运维t which is a directory above httpdocs where the domain is linked.
I\'m trying to create a base template which then loads data depending on what actions are taken. I included ( required ) some pages which was fine but when I included another file which I got a 500 in
I have a mod_rails server where disk space, oddly enough, is at a premium.Is there a way for me to compress my application\'s source, like Python\'s zipimport?
Trying to improve my code\'s agility and loading time, I thought of doing this, so that the functions would be required开发者_如何转开发 only if the class was instantiated.
I\'m fairly new to Rails and am trying to figure out how to add a method to the String class and have the code in my partial know that the String class has been added to.I\'m not sure where I should p
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
I do something like sudo gem install json. Then I do irb. Then I do require \'json\'. Then it says no su开发者_如何学Goch file to load -- jsonYou need to make sure that RubyGems itself is loaded, for
Is there any way to determine from within a required script, where that requir开发者_高级运维e call was made from?