env

env() Class Public methods

bundler?

bundler?() Instance Public methods This is a predicate useful for the doc:guides task of applications.

name

name() Instance Public methods

gets

gets(eol=$/, limit=nil) Instance Public methods Reads the next âline+ from the stream. Lines are separated by eol. If limit is provided the result will not be longer than the given number of bytes. eol may be a String or Regexp. Unlike IO#gets the line read will not be assigned to +$_+. Unlike IO#gets the separator must be provided if a limit is provided.

mattr_reader

mattr_reader(*syms) Instance Public methods Defines a class attribute and creates a class and instance reader methods. The underlying the class variable is set to nil, if it is not previously defined. module HairColors mattr_reader :hair_colors end HairColors.hair_colors # => nil HairColors.class_variable_set("@@hair_colors", [:brown, :black]) HairColors.hair_colors # => [:brown, :black] The attribute name must be a valid method name in Ruby. module Foo mattr_reader :"1

start

start() Class Public methods Performs the standard operations for daemonizing a process. Runs a block, if given.

su

su(user) Class Public methods Changes the process's uid and gid to the ones of user

add_text

add_text( text ) Instance Public methods A helper method to add a Text child. Actual Text instances can be added with regular Parent methods, such as add() and <<() text if a String, a new Text instance is created and added to the parent. If Text, the object is added directly. Returns this Element e = Element.new('a') #-> <e/> e.add_text 'foo' #-> <e>foo</e> e.add_text Text.new(' bar') #-> <e>foo bar</e>

glob

glob(pattern) â Glob Instance Public methods def sort(*filenames) Sort.new(self, *filenames) end Returns a Glob filter object, with the given pattern object

eigensystem

eigensystem() Instance Public methods Returns the Eigensystem of the matrix; see EigenvalueDecomposition. m = Matrix[[1, 2], [3, 4]] v, d, v_inv = m.eigensystem d.diagonal? # => true v.inv == v_inv # => true (v * d * v_inv).round(5) == m # => true eigen