regexp

mtch.regexp â regexp Instance Public methods Returns the regexp. m = /a.*b/.match("abc") m.regexp #=> /a.*b/

row_count

row_count() Instance Public methods Returns the number of rows. row_size

do_classes

do_classes() Instance Public methods Scans content for rb_define_class, boot_defclass, rb_define_class_under and rb_singleton_class

executable?

File.executable?(file_name) â true or false Class Public methods Returns true if the named file is executable by the effective user id of this process.

new

new(source) Class Public methods Create an AttlistDecl, pulling the information from a Source. Notice that this isn't very convenient; to create an AttlistDecl, you basically have to format it yourself, and then have the initializer parse it. Sorry, but for the forseeable future, DTD support in REXML is pretty weak on convenience. Have I mentioned how much I hate DTDs?

deprecate_methods

deprecate_methods(target_module, *method_names) Instance Public methods Declare that a method has been deprecated. module Fred extend self def foo; end def bar; end def baz; end end ActiveSupport::Deprecation.deprecate_methods(Fred, :foo, bar: :qux, baz: 'use Bar#baz instead') # => [:foo, :bar, :baz] Fred.foo # => "DEPRECATION WARNING: foo is deprecated and will be removed from Rails 4.1." Fred.bar # => "DEPRECATION WARNING: bar is deprecated and will be remove

tagid

tagid(tagOrId) Instance Public methods

tagid

tagid(tagOrId) Instance Public methods

mount

mount(app, options = nil) Instance Public methods Mount a Rack-based application to be used within the application. mount SomeRackApp, at: "some_route" Alternatively: mount(SomeRackApp => "some_route") For options, see match, as mount uses it internally. All mounted applications come with routing helpers to access them. These are named after the class specified, so for the above example the helper is either some_rack_app_path or some_rack_app_url. To customize this helper's na

key=

cipher.key = string â string Instance Public methods Sets the cipher key. To generate a key, you should either use a secure random byte string or, if the key is to be derived from a password, you should rely on PBKDF2 functionality provided by OpenSSL::PKCS5. To generate a secure random-based key, #random_key may be used. Only call this method after calling #encrypt or #decrypt.