mkdir

mkdir(p1 = v1) Instance Public methods Create the referenced directory. See Dir.mkdir.

github

github(name, github, branch = nil, comment = nil) Class Public methods

prepend

str.prepend(other_str) â str Instance Public methods PrependâPrepend the given string to str. a = "world" a.prepend("hello ") #=> "hello world" a #=> "hello world"

invalid?

invalid?(context = nil) Instance Public methods Performs the opposite of valid?. Returns true if errors were added, false otherwise. class Person include ActiveModel::Validations attr_accessor :name validates_presence_of :name end person = Person.new person.name = '' person.invalid? # => true person.name = 'david' person.invalid? # => false Context can optionally be supplied to define which callbacks to test against (the context is defined on the validations using :o

coerce

coerce(other) Instance Public methods The coerce method provides support for Ruby type coercion. This coercion mechanism is used by Ruby to handle mixed-type numeric operations: it is intended to find a compatible common type between the two operands of the operator. See also Numeric#coerce.

values_at

gdbm.values_at(key, ...) â array Instance Public methods Returns an array of the values associated with each specified key.

read

read(key) Instance Public methods

partial

partial() Instance Public methods

singleton_methods

obj.singleton_methods(all=true) â array Instance Public methods Returns an array of the names of singleton methods for obj. If the optional all parameter is true, the list will include methods in modules included in obj. Only public and protected singleton methods are returned. module Other def three() end end class Single def Single.four() end end a = Single.new def a.one() end class << a include Other def two() end end Single.singleton_methods #=> [

bbox

bbox(idx) Instance Public methods