of

of(p1) Class Public methods Returns the instruction sequence containing the given proc or method. For example, using irb: # a proc > p = proc { num = 1 + 2 } > RubyVM::InstructionSequence.of(p) > #=> <RubyVM::InstructionSequence:block in irb_binding@(irb)> # for a method > def foo(bar); puts bar; end > RubyVM::InstructionSequence.of(method(:foo)) > #=> <RubyVM::InstructionSequence:foo@(irb)> Using ::compile_file: # /tmp/iseq_of.rb def hello pu

num_or_str

num_or_str(p1) Class Public methods

render_implicit_js_template_without_layout

render_implicit_js_template_without_layout() Instance Public methods

convert

convert( name )convert { |field| ... }convert { |field, field_info| ... } Instance Public methods You can use this method to install a CSV::Converters built-in, or provide a block that handles a custom conversion. If you provide a block that takes one argument, it will be passed the field and is expected to return the converted value or the field itself. If your block takes two arguments, it will also be passed a CSV::FieldInfo Struct, containing details about the field. Again,

substring_after

substring_after( string, test ) Class Public methods Kouhei fixed this too

required_rubygems_version=

required_rubygems_version=(req) Instance Public methods The RubyGems version required by this gem

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