Displaying 7 results from an estimated 7 matches for "amethod".
Did you mean:
method
2007 Feb 15
17
Odd parameter munging with with()
Hi,
I have this setup block:
setup do
session[:login] = ''jhughes''
@user = mock("user")
User.stub!(:find).and_return(@user)
@params = {:cn => "Bilbo Baggins",
:telephoneNumber => "416-277-4418",
:mail => "bilbo at baggins.com"}
end
And then this spec:
specify "should update and save the
2013 Jun 28
3
problem with eval(..., parent.frame(1L)) when package is not loaded
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The lmer() function in the lme4 package has some code of the form
mc <- match.call()
mc[[1]] <- as.name("lFormula")
lmod <- eval(mc, parent.frame(1L))
this is a fairly common idiom in R, found e.g. in lm(), used when
one wants to pass all of the arguments of a function to a different
function (in the case of lm() it's
2010 Mar 26
2
file upload error(can't convert Tempfile into String)
i tried a method to implementa file uploader by using amethod below
this is ma controlller method to upload
def save_imports
Contactslist.save(params[:list])
render :text => "File uploaded successfully"
this is ma view file
.remote
- form_for(@list, :url=> save_imports_list_path(@list, :format =>
"js"), :htm...
2005 Jan 08
1
sub( , perl = TRUE) overflow (PR#7479)
...paces)
> trimwhitespace(paste(x, "abc"))
[1] "abc\0\0\002\0\002\0\001\0\001\004\0\0\0\a\003\0\0\004\002\0\0\0\001\0\0\024 \0\0\0\005class\0\0\006\020\0\0\0\001\0\0\004 \0\0\0\024groupGenericFunction\0\0\004\002\0\0\0\001\0\0\024 \0\0\0\apackage\0\0\004\020\0\0\0\001\0\0\004 \0\0\0\amethods\0\0\0?\0\0\004\002\0\0\0\001\0\0\024 \0\0\0\fgroupMembers\0\0\004\023\0\0\0\a\0\0\004\020\0\0\0\001\0\0\004 \0\0\0\001+\0\0\004\020\0\0\0\001\0\0\004 \0\0\0\001-\0\0\004\020\0\0\0\001\0\0\004 \0\0\0\001*\0\0\004\020\0\0\0\001\0\0\004 \0\0\0\001^\0\0\004\020\0\0\0\001\0\0\004 \0\0\0\002%%\0\0\004\0...
2006 Jul 17
0
error_message_on / error_messages_for
...ad
your form) whereas error_message_on must be use with an instanciated
object ...
So, you always has to double check if anObject is not nil before using
error_message_on ?
I don''t understand why there is a difference, I mean why you cannot
simply use <% error_message_on anObject, aMethod %> without evaluating
anObject ?
thanks
arnaud
2010 May 07
1
Protecting elements within a function
Hi all, previously I submitted this thread through Nabble which seems fail therefore sending it again....
suppose I have written following function :
> fn = function(x) return(x+x^2)
> fn
function(x) return(x+x^2)
Here you see, if I type only the function name all inside information of this function are visible. Is there any way to protect them i.e. make them invisible?
Thanks
2007 Sep 13
0
2 commits - libswfdec/swfdec_as_function.c test/trace
...and-scope-chain.as
@@ -0,0 +1,14 @@
+// makeswf -v 7 -s 200x150 -r 1 -o scope-chain-with-and-scope-chain.swf scope-chain-with-and-scope-chain.as
+// taken with permission from http://www.timotheegroleau.com/Flash/articles/scope_chain.htm
+
+o1 = {a:5};
+o2 = {};
+with (o1) {
+ trace(a); // 5
+ o2.aMethod = function() {
+ trace(a);
+ };
+};
+o2.aMethod(); // undefined
+
+loadMovie ("FSCommand:quit", "");
diff-tree 87e4fa70d0d8cb93ec124fe97e5781794a8a2d7e (from ef4b8c89c3e50cdd36402301e9aad38270accf24)
Author: Benjamin Otte <otte at gnome.org>
Date: Thu Sep 13 20:42:54...