get_no_event_wait

get_no_event_wait() Class Public methods

__destroy_hook__

__destroy_hook__() Instance Public methods

new

new(*args) Class Public methods

chr

int.chr([encoding]) â string Instance Public methods Returns a string containing the character represented by the receiver's value according to encoding. 65.chr #=> "A" 230.chr #=> "\346" 255.chr(Encoding::UTF_8) #=> "\303\277"

to_r

cmp.to_r â rational Instance Public methods Returns the value as a rational if possible (the imaginary part should be exactly zero). Complex(1, 0).to_r #=> (1/1) Complex(1, 0.0).to_r # RangeError Complex(1, 2).to_r # RangeError See rationalize.

tag_focus

tag_focus(tag) Instance Public methods

at_midnight

at_midnight() Instance Public methods Alias for: beginning_of_day

truncate

truncate(n) Instance Public methods Truncate to the nearest 1, returning the result as a BigDecimal. BigDecimal('3.14159').truncate #=> 3 BigDecimal('8.7').truncate #=> 8 If n is specified and positive, the fractional part of the result has no more than that many digits. If n is specified and negative, at least that many digits to the left of the decimal point will be 0 in the result. BigDecimal('3.14159').truncate(3) #=> 3.141 BigDecimal('13345.234').truncate(-2) #=>

post_match

post_match() Instance Public methods Return the post-match (in the regular expression sense) of the last scan. s = StringScanner.new('test string') s.scan(/\w+/) # -> "test" s.scan(/\s+/) # -> " " s.pre_match # -> "test" s.post_match # -> "string"

install_executables

install_executables(bin_dir) Instance Public methods