Ruby – Ranges
Ranges occur everywhere: January to December, 0 to 9, lines 50 through 67, and so on. Ruby supports ranges and allows us to use ranges in a variety of ways…
Ranges occur everywhere: January to December, 0 to 9, lines 50 through 67, and so on. Ruby supports ranges and allows us to use ranges in a variety of ways…
MySQL ALTER command is very useful when you want to change a name of your table, any table field or if you want to add or delete an existing column in a…
The Time class represents dates and times in Ruby. It is a thin layer over the system date and time functionality provided by the operating system. This class may be unable on…
A Hash is a collection of key-value pairs like this: "employee" = > "salary". It is similar to an Array, except that indexing is done via arbitrary keys of any…
The subsequence function is used to get the sequence containing requested items present in a given sequence. Syntax subsequence($seq as item()*, $startingLoc as xs:double, $length as xs:double) Input Parameters $seq − provided sequence.…
Ruby arrays are ordered, integer-indexed collections of any object. Each element in an array is associated with and referred to by an index. Array indexing starts at 0, as in…
A String object in Ruby holds and manipulates an arbitrary sequence of one or more bytes, typically representing characters that represent human language. The simplest string literals are enclosed in…
A transaction is a sequential group of database manipulation operations, which is performed as if it were one single work unit. In other words, a transaction will never be complete…
Modules are a way of grouping together methods, classes, and constants. Modules give you two major benefits. Modules provide a namespace and prevent name clashes.Modules implement the mixin facility. Modules define a namespace, a…
The distinct-values function is used to get the sequence containing unique items present in a given sequence. Syntax distinct-values($seq as item()*) Input Parameters $seq − provided sequence. A sequence can contain 0 or…