search for: method_b

Displaying 4 results from an estimated 4 matches for "method_b".

Did you mean: method_2
2008 Feb 02
1
Ruby++ FFI (theoretical)
...an // foo.h - Function prototypes #define _FOO_H_ using namespace ruby; // Subclass Object class Foo : public RubyObject { public: // Constructor and Destructor Foo(); // constructor ~Foo(); // destructor // Instance Methods VALUE method_a(); VALUE method_b(VALUE); // Singleton Methods static VALUE method_c(VALUE); }; // foo.cpp - Implementation #include <iostream> #include <foo.h> using namespace ruby; /* Constructor */ Foo::Foo(){ cout << "Hello Worldn"; } /* Or maybe we setup some sort of default Ob...
2006 Feb 15
2
extending rails via /lib - problems
...in one place. Controllers have application.rb and views have helpers but I couldn''t find anything about models. Using the /lib directory seemed to be the only way. Alright... so I have something like this: /lib/code.rb class ActiveRecord::Base def method_a(n) ....... end def method_b(n) ........ end end /models/some_model.rb class SomeModel < ActiveRecord::Base def self.some_method(a, b) ........ end def other_method ........ end end I also added `require ''code''` to enviroment.rb My problem is that, for some reason, I can''t use...
2006 Jul 12
5
SystemStackError
SystemStackError in GreyController#grey_search stack level too deep can anybody please enlighten me on this one...any possible way to troubleshoot? thanks, MSN id: ICEMANyears@netscape.net -- Posted via http://www.ruby-forum.com/.
2007 Jun 09
11
authentication, controller specs. I think I''m missing something simple ....
...disappear. I am interested in how to resolve the LocalJumpError issue tho since I''m sure it will be a use-case that crops up in my application. The basic issue I''m struggling with is how does define mocks/stubs for a controller method that does something of the form: method_a.method_b.find Pasted code/spec/errors here * things_controller http://pastie.caboo.se/69136 * things_controller_spec http://pastie.caboo.se/69137 * Errors w/ find(:all) http://pastie.caboo.se/69138 -- Rick rick.tessner at gmail.com