urlsafe_decode64

urlsafe_decode64(str) Instance Public methods Returns the Base64-decoded version of str. This method complies with âBase 64 Encoding with URL and Filename Safe Alphabet'' in RFC 4648. The alphabet uses '-' instead of '+' and '_' instead of '/'.

urlsafe_encode64

urlsafe_encode64(bin) Instance Public methods Returns the Base64-encoded version of bin. This method complies with âBase 64 Encoding with URL and Filename Safe Alphabet'' in RFC 4648. The alphabet uses '-' instead of '+' and '_' instead of '/'.

new

new() Class Public methods Not documented

!

!obj â true or false Instance Public methods Boolean negate.

!=

obj != other â true or false Instance Public methods Returns true if two objects are not-equal, otherwise false.

==

obj == other â true or false Instance Public methods Equality â At the Object level, == returns true only if obj and other are the same object. Typically, this method is overridden in descendant classes to provide class-specific meaning. Unlike ==, the equal? method should never be overridden by subclasses as it is used to determine object identity (that is, a.equal?(b) if and only if a is the same object as b): obj = "a" other = obj.dup a == other #=> true a.equal?

__id__

obj.__id__ â integerobj.object_id â integer Instance Public methods Returns an integer identifier for obj. The same number will be returned on all calls to id for a given object, and no two active objects will share an id. Object#object_id is a different concept from the :name notation, which returns the symbol id of name. Replaces the deprecated Object#id.

__send__

foo.send(symbol [, args...]) â objfoo.__send__(symbol [, args...]) â obj Instance Public methods Invokes the method identified by symbol, passing it any arguments specified. You can use __send__ if the name send clashes with an existing method in obj. class Klass def hello(*args) "Hello " + args.join(' ') end end k = Klass.new k.send :hello, "gentle", "readers" #=> "Hello gentle readers"

equal?

obj.equal?(other) â true or false Instance Public methods Equality â At the Object level, == returns true only if obj and other are the same object. Typically, this method is overridden in descendant classes to provide class-specific meaning. Unlike ==, the equal? method should never be overridden by subclasses as it is used to determine object identity (that is, a.equal?(b) if and only if a is the same object as b): obj = "a" other = obj.dup a == other #=> true a.equal?

instance_eval

obj.instance_eval(string [, filename [, lineno]] ) â objobj.instance_eval {| | block } â obj Instance Public methods Evaluates a string containing Ruby source code, or the given block, within the context of the receiver (obj). In order to set the context, the variable self is set to obj while the code is executing, giving the code access to obj's instance variables. In the version of instance_eval that takes a String, the optional second and third parameter