Results for: "module_function"

Removes an attribute

attribute

either a String, which is the name of the attribute to remove – namespaces are significant here – or the attribute to remove.

Returns

the owning element

doc = Document.new "<a y:foo='0' x:foo='1' foo='3' z:foo='4'/>"
doc.root.attributes.delete 'foo'   #-> <a y:foo='0' x:foo='1' z:foo='4'/>"
doc.root.attributes.delete 'x:foo' #-> <a y:foo='0' z:foo='4'/>"
attr = doc.root.attributes.get_attribute('y:foo')
doc.root.attributes.delete attr    #-> <a z:foo='4'/>"
No documentation available
No documentation available

Returns the number of enumerated Enumerable objects, i.e. the size of each row.

Only use this if you do not want the XML declaration to be written; this object is ignored by the XML writer. Otherwise, instantiate your own XMLDecl and add it to the document.

Note that XML 1.1 documents must include an XML declaration

No documentation available

Removes tuple from the TupleBag.

Moves tuple to port.

No documentation available
No documentation available

True if the command handles the given argument list.

Does this dependency require a prerelease?

No documentation available

A null NameTuple, ie name=nil, version=0

Indicate if this NameTuple is for a prerelease version.

No documentation available

A default “version requirement” can surely only be ‘>= 0’.

A requirement is a prerelease if any of the versions inside of it are prereleases

A version is considered a prerelease if it contains a letter.

The release for this version (e.g. 1.2.0.a -> 1.2.0). Non-prerelease versions return themselves.

Removes all sources from the SourceList.

Deletes source from the source list which may be a Gem::Source or a URI.

Files included in this gem. You cannot append to this accessor, you must assign to it.

Only add files you can require to this list, not directories, etc.

Directories are automatically stripped from this list when building a gem, other non-files cause an error.

Usage:

require 'rake'
spec.files = FileList['lib/**/*.rb',
                      'bin/*',
                      '[A-Z]*',
                      'test/**/*'].to_a

# or without Rake...
spec.files = Dir['lib/**/*.rb'] + Dir['bin/*']
spec.files += Dir['[A-Z]*'] + Dir['test/**/*']
spec.files.reject! { |fn| fn.include? "CVS" }

Executables included in the gem.

For example, the rake gem has rake as an executable. You don’t specify the full path (as in bin/rake); all application-style files are expected to be found in bindir. These files must be executable Ruby files. Files that use bash or other interpreters will not work.

Executables included may only be ruby scripts, not scripts for other languages or compiled binaries.

Usage:

spec.executables << 'rake'

Dump only crucial instance variables.

Search took: 5ms  ·  Total Results: 3605