terminate_interaction

terminate_interaction(*args) Instance Public methods

list

list(val, depth=0, enc=true) Class Public methods ### â> definition is moved to TkUtil module def _symbolkey2str(keys) h = {} keys.each{|key,value| h[key.to_s] = value} h end private :_symbolkey2str module_function :_symbolkey2str ### â> definition is moved to TkUtil module # def hash_kv(keys, enc_mode = nil, conf = [], flat = false) def hash_kv(keys, enc_mode = nil, conf = nil) # Hash {key=>val, key=>val, ... } or Array [ [key, val], [key, val], ... ] # ==> Arr

entity_class

entity_class() Class Public methods accessor to Fiddle::CStructEntity

truncate

truncate(text, options = {}, &block) Instance Public methods Truncates a given text after a given :length if text is longer than :length (defaults to 30). The last characters will be replaced with the :omission (defaults to ââ¦â) for a total length not exceeding :length. Pass a :separator to truncate text at a natural break. Pass a block if you want to show extra content when the text is truncated. The result is marked as HTML-safe, but it is escaped by default, unless :escape

show_message

show_message(message) Instance Public methods

auto_discovery_link_tag

auto_discovery_link_tag(type = :rss, url_options = {}, tag_options = {}) Instance Public methods Returns a link tag that browsers and feed readers can use to auto-detect an RSS or Atom feed. The type can either be :rss (default) or :atom. Control the link options in url_for format using the url_options. You can modify the LINK tag itself in tag_options. Options :rel - Specify the relation of this link, defaults to âalternateâ :type - Override the auto-generated mime type :ti

random_number

random_number(n=0) Class Public methods ::random_number generates a random number. If a positive integer is given as n, ::random_number returns an integer: 0 <= ::random_number < n. p SecureRandom.random_number(100) #=> 15 p SecureRandom.random_number(100) #=> 88 If 0 is given or an argument is not given, ::random_number returns a float: 0.0 <= ::random_number < 1.0. p SecureRandom.random_number #=> 0.596506046187744 p SecureRandom.random_number #=> 0.35062

mutex

mutex() Instance Public methods

start_mapping

start_mapping(anchor, tag, implicit, style) Instance Public methods Called when a map starts. anchor is the anchor associated with the map or nil. tag is the tag associated with the map or nil. implicit is a boolean indicating whether or not the map was implicitly started. style is an integer indicating the mapping style. See the constants in Psych::Nodes::Mapping for the possible values of style. Example Here is a YAML document that exercises most of the possible ways this method

join

thr.join â thrthr.join(limit) â thr Instance Public methods The calling thread will suspend execution and run thr. Does not return until thr exits or until limit seconds have passed. If the time limit expires, nil will be returned, otherwise thr is returned. Any threads not joined will be killed when the main program exits. If thr had previously raised an exception and the abort_on_exception and $DEBUG flags are not set (so the exception has not yet been processed) it