element=

element=( element ) Instance Public methods Sets the element of which this object is an attribute. Normally, this is not directly called. Returns this attribute

new

new() Class Public methods

on_error

on_error(et, ev, _values) Instance Public methods Raises a ParseError when invalid formatting is found

excerpt

excerpt(text, phrase, options = {}) Instance Public methods Extracts an excerpt from text that matches the first instance of phrase. The :radius option expands the excerpt on each side of the first occurrence of phrase by the number of characters defined in :radius (which defaults to 100). If the excerpt radius overflows the beginning or end of the text, then the :omission option (which defaults to ââ¦â) will be prepended/appended accordingly. Use the :separator option to choose th

klass

klass() Instance Public methods

strptime

strptime(date, format, now=self.now) Class Public methods Parses date using Date._strptime and converts it to a Time object. If a block is given, the year described in date is converted by the block. For example: Time.strptime(...) {|y| y < 100 ? (y >= 69 ? y + 1900 : y + 2000) : y} Below is a list of the formating options: %a The abbreviated weekday name (âSunâ) %A The full weekday name (âSundayâ) %b The abbreviated month name (âJanâ) %B The full month

render_file_with_locals

render_file_with_locals() Instance Public methods

sync_unlock

sync_unlock(m = EX) Instance Public methods

new

new() Class Public methods

alias

alias(anchor) Instance Public methods Called when an alias is found to anchor. anchor will be the name of the anchor found. Example Here we have an example of an array that references itself in YAML: --- &ponies - first element - *ponies &ponies is the achor, *ponies is the alias. In this case, alias is called with âponiesâ.