search for: somemethod

Displaying 14 results from an estimated 14 matches for "somemethod".

2007 May 30
6
authentication mocks
hi I''m using restful_authentication and have controller specs working using users fixtures (and login_as) however i''ve been trying for hours without success to do it without fixtures, using mocks and stubs instead. anyone here done this? got code? :) thanks
2008 Jan 23
1
Making Parents object attributes available
..." set_primary_key "p_persoon" has_many :adres, :class_name => "Adres" composed_of :name, :class_name => Name, :mapping => [ [:naam,:naam], [:voornaam,:voornaam], [:voornaam2,:voornaam2], [:persnickname,:persnickname], [:perssortname,:perssortname] ] def somemethod(string) ... end end and a child class Student (which is a person) class Student < Person set_table_name "Student" set_primary_key "p_persoon" has_many :contract, :foreign_key => ''p_persoon'' end How can i access my Persons attributes when...
2012 Feb 16
2
[LLVMdev] Question about "const"
...ProcessorT<const Instruction> ConstInstructionProcessor; 2. Unions. class InstructionProcessor { union { const Instruction *ConstInst; Instruction *Inst; } InstructionProcessor(Instruction *I) : Inst(I) {} InstructionProcessor(const Instruction *I) : ConstInst(I) {} void someMethod(); // Will work with Inst. void someMethod() const; // Will work with ConstInst. }; Any suggestions? Thanks! -Stepan.
2012 Feb 16
0
[LLVMdev] Question about "const"
...ProcessorT<const Instruction> ConstInstructionProcessor; 2. Unions. class InstructionProcessor { union { const Instruction *ConstInst; Instruction *Inst; } InstructionProcessor(Instruction *I) : Inst(I) {} InstructionProcessor(const Instruction *I) : ConstInst(I) {} void someMethod(); // Will work with Inst. void someMethod() const; // Will work with ConstInst. }; Any suggestions? Thanks! -Stepan. _______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llv...
2006 Apr 28
2
Active Record save doesn''t save! (more detail - is this a bug?)
I got it to work by changing scheduled_end_date= nil to self.scheduled_end_date= nil. I believe these statements should be equivilent. I don''t know Ruby/Rails well enough to know when, if or why that should matter. Can someone educate me please? I want to believe this framework is ready for production work, but silently dropping data is a very big problem. I expect that I''ve
2014 Sep 25
5
[LLVMdev] New type of smart pointer for LLVM
...solution with a certain type of smart pointer would look like (see changes in TGParser::ParseDef(), TGParser::InstantiateMulticlassDef() and TGParser::ParseSimpleValue()). Briefly: consider a leaky example: { T* p = new T; if (condition1) { f(p); // takes ownership of p } p->SomeMethod(); if (condition2) { return nullptr; // Leak! } g(p); // don't take ownership of p return p; } The preferred solution would look like: { smart_ptr<T> p(new T); if (condition1) { f(p.StopOwn()); // takes ownership of p } p->SomeMethod(); if (cond...
2009 Aug 30
4
[LLVMdev] Perfect forwarding?
...a C++ network RPC system that serializes up the arguments, handles pointers/references/const'ness correctly, handles sync of network objects, and is used like any normal C++ function. It let me create this syntax: // example used code class someClass : public NetworkIDObject { public: void someMethod(float f) { // do other stuff } } // If someClass did not have NetworkIDObject as a child anywhere in its multibase hierarchy, then the class itself is serialized up as if by value, then passed to the remote function by pointer when deserialized (on the stack, eh, eh?, has to be default c...
2008 Oct 10
16
rspec - undefined method `describe'' for main:Object
...pec'' describe SandboxController,"handling someaction" do it "should get real value 10" do get :someaction assigns[:value].should equal(10) end end My controller is class SandboxController < ApplicationController def someaction @value = somemethod end protected def somemethod return 10 end end Please help me to solve the issue -- Posted via http://www.ruby-forum.com/.
2014 Sep 25
2
[LLVMdev] New type of smart pointer for LLVM
On Thu, Sep 25, 2014 at 1:44 AM, Renato Golin <renato.golin at linaro.org> wrote: > On 25 September 2014 06:16, David Blaikie <dblaikie at gmail.com> wrote: > > I can go & dredge up some examples if we want to discuss the particular > > merits & whether each of those cases would be better solved in some other > > way, but it seemed pervasive enough in the
2014 Sep 25
2
[LLVMdev] New type of smart pointer for LLVM
...seDef(), TGParser::InstantiateMulticlassDef() and > > TGParser::ParseSimpleValue()). > > > > Briefly: > > consider a leaky example: > > { > > T* p = new T; > > if (condition1) { > > f(p); // takes ownership of p > > } > > p->SomeMethod(); > > > > if (condition2) { > > return nullptr; // Leak! > > } > > > > g(p); // don't take ownership of p > > return p; > > } > > > > The preferred solution would look like: > > { > > smart_ptr<T> p(new...
2005 Mar 02
0
Re: AWS Client Usage
...t this juncture :) Anyhow, the Ruby SOAP bindings already have good client support, have you had any success with "soap/wsdlDriver"? I.e.: require "soap/wsdlDriver" factory = SOAP::WSDLDriverFactory.new("http://url/to/wsdl") client = factory.createDriver ret = client.someMethod(arg1, arg2) The main disadvantage of this approach of course being that any custom structured types will not have the same ancestry as the real ones, but if your client is completely seperate from the server, that should be fine. Regards Leon
2012 Feb 21
0
Thread safety and class methods
...od on a model? I am seeing some weird data in some of my model instances and I think it may be to do with concurrent processing of a class method in a model. Is this possible, that variables get shared between all threads of execution, when you are accessing a class method? #example def self.somemethod end -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/HiqWlnPiyL0J. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3M...
2014 Oct 01
4
[LLVMdev] New type of smart pointer for LLVM
...nter would look like (see changes in TGParser::ParseDef(), > TGParser::InstantiateMulticlassDef() and TGParser::ParseSimpleValue()). > > Briefly: > consider a leaky example: > { > T* p = new T; > if (condition1) { > f(p); // takes ownership of p > } > p->SomeMethod(); > > if (condition2) { > return nullptr; // Leak! > } > > g(p); // don't take ownership of p > return p; > } > > The preferred solution would look like: > { > smart_ptr<T> p(new T); > if (condition1) { > f(p.StopOwn()); // ta...
2005 Oct 21
21
PHPonRails ?
I''ve have a very tight schedule project that MUST (not my option), be developed in PHP. Is there a Rails based framework for this platform? I like the Rails way of things, but in this case, I cannot choose the programming language, so please don''t offend me :-) Thanks in advance, Alessandro _______________________________________________ Rails mailing list