• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/ruby-106/ruby/lib/

Lines Matching +refs:default +refs:value

277     # This method will return the field value by +header+ or +index+.  If a field
298 # fetch( header, default )
300 # This method will fetch the field value by +header+. It has the same
302 # value is returned. Otherwise, if a block is given, it is yielded the
303 # +header+ and its result is returned; if a +default+ is given as the
332 # []=( header, value )
333 # []=( header, offset, value )
334 # []=( index, value )
337 # assigns the +value+.
344 value = args.pop
348 @row[args.first] = [nil, value]
351 @row[args.first][1] = value
356 self << [args.first, value]
358 @row[index][1] = value
371 # the header and the value being the field. Anything else is assumed to be
381 else # append field value
633 # iteration methods will use the default intelligent indexing system until
683 # In the default mixed mode, this method returns rows for index access and
700 # In the default mixed mode, this method assigns rows for index access and
707 # Columns may be set to a single value, which is copied to each row of the
710 # does not have a value for each row the extra rows will receive a +nil+.
715 def []=(index_or_header, value)
718 if value.is_a? Array
719 @table[index_or_header] = Row.new(headers, value)
721 @table[index_or_header] = value
724 if value.is_a? Array # multiple values
729 row[index_or_header] = value[i]
732 else # repeated value
737 row[index_or_header] = value
745 # The mixed mode default is to treat a list of indices as row access,
798 # Removes and returns the indicated column or row. In the default mixed
813 # default mixed mode or row mode, iteration is the standard row major
836 # In the default mixed mode or row mode, iteration is the standard row major
943 # To add a combo field, the value should be an Array of names. Combo fields
988 # To add a combo field, the value should be an Array of names. Combo fields
1035 # value becomes the return value of the block.
1064 # (generally String or IO objects). If not given, they default to
1081 args.pop.each do |key, value|
1084 in_options[$1.to_sym] = value
1086 out_options[$1.to_sym] = value
1088 in_options[key] = value
1089 out_options[key] = value
1129 # This method wraps a String you provide, or an empty default String, in a
1143 # add a default empty String, if none was given
1376 # available for output, the default
1413 # by default.
1465 # <b><tt>:skip_blanks</tt></b>:: When set to a +true+ value, CSV will
1467 # <b><tt>:force_quotes</tt></b>:: When set to a +true+ value, CSV will
1478 # See CSV::DEFAULT_OPTIONS for the default settings.
1489 # honor the IO encoding if we can, otherwise default to ASCII-8BIT
1677 # and is expected to return the converted value or the field itself. If your
1942 # +STDERR+ and any stream open for output only with a default
1975 # (ensure will set default value)
1999 # do nothing: ensure will set default
2001 # do nothing: ensure will set default
2003 # do nothing: ensure will set default
2006 # set default if we failed to detect
2070 # If +field_name+ is set <tt>:converters</tt> (the default) field converters
2260 # Returns the encoding of the internal IO object or the +default+ if the
2263 def raw_encoding(default = Encoding::ASCII_8BIT)
2271 default
2281 # If a block is given, the instance is passed the block and the return value
2282 # becomes the return value of the block.