Sha256: 0133ec380807ec1a5b787898284bdb98a35bb9f645c0a5ce00a6e577728bc762

Contents?: true

Size: 937 Bytes

Versions: 2

Compression:

Stored size: 937 Bytes

Contents

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Translates a string in the form on a set of numerical and/or alphanumerical characters separated by non-word characters (eg \W+) into a Tuple. The values of the tuple will be converted to integers if they are purely numerical.
- !ruby/struct:SM::Flow::VERB 
  body: "  Tuple.cast_from_string('1.2.3a')  #=> [1,2,"3a"]\n"
- !ruby/struct:SM::Flow::P 
  body: It you would like to control the interpretation of each value as it is added to the tuple you can supply a block.
- !ruby/struct:SM::Flow::VERB 
  body: "  Tuple.cast_from_string('1.2.3a'){ |v| v.upcase }  #=> ["1","2","3A"]\n"
- !ruby/struct:SM::Flow::P 
  body: This method is called by String#to_t.
full_name: Tuple::cast_from_string
is_singleton: true
name: cast_from_string
params: ( str, &yld )
visibility: public

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-2.4.2 doc/ri/Tuple/cast_from_string-c.yaml
facets-2.4.3 doc/ri/Tuple/cast_from_string-c.yaml