cget

cget(slot) Instance Public methods

audio_tag

audio_tag(*sources) Instance Public methods Returns an HTML audio tag for the source. The source can be full path or file that exists in your public audios directory. audio_tag("sound") # => <audio src="/audios/sound" /> audio_tag("sound.wav") # => <audio src="/audios/sound.wav" /> audio_tag("sound.wav", autoplay: true, controls: true) # => <audio autoplay="autoplay" controls="controls" src="/audios/sound.wav" /> audio_tag("sound.wav", "sound.mid") # =>

doctype_end

doctype_end() Instance Public methods Called when the doctype is done

hash

mtch.hash â integer Instance Public methods Produce a hash based on the target string, regexp and matched positions of this matchdata.

package_version

package_version() Class Public methods

weeks_since

weeks_since(weeks) Instance Public methods Returns a new date/time the specified number of weeks in the future.

binread

IO.binread(name, [length [, offset]] ) â string Class Public methods Opens the file, optionally seeks to the given offset, then returns length bytes (defaulting to the rest of the file). binread ensures the file is closed before returning. The open mode would be ârb:ASCII-8BITâ. IO.binread("testfile") #=> "This is line one\nThis is line two\nThis is line three\nAnd so on...\n" IO.binread("testfile", 20) #=> "This is line one\nThi" IO.binread("testfile", 20,

unescape

unescape(str, escaped = /%[a-fA-F\d]{2}/) Instance Public methods

proxy_place

proxy_place(x, y) Instance Public methods

find

find(template) Instance Public methods Finds a live tuple that matches template.