Results for: "String#[]"

No documentation available
No documentation available
No documentation available
No documentation available
No documentation available

Returns an array of Range objects that represent the value of field 'Range', or nil if there is no such field; see Range request header:

req = Net::HTTP::Get.new(uri)
req['Range'] = 'bytes=0-99,200-299,400-499'
req.range # => [0..99, 200..299, 400..499]
req.delete('Range')
req.range # # => nil
No documentation available

Adds a separated list. The list is separated by comma with breakable space, by default.

seplist iterates the list using iter_method. It yields each object to the block given for seplist. The procedure separator_proc is called between each yields.

If the iteration is zero times, separator_proc is not called at all.

If separator_proc is nil or not given, +lambda { comma_breakable }+ is used. If iter_method is not given, :each is used.

For example, following 3 code fragments has similar effect.

q.seplist([1,2,3]) {|v| xxx v }

q.seplist([1,2,3], lambda { q.comma_breakable }, :each) {|v| xxx v }

xxx 1
q.comma_breakable
xxx 2
q.comma_breakable
xxx 3

For the given source string, return the byte offsets of every newline in the source.

Create a new AliasGlobalVariableNode node

Create a new BeginNode node

Create a new BlockLocalVariableNode node

Create a new CallAndWriteNode node

Create a new CallOperatorWriteNode node

Create a new CallOrWriteNode node

Create a new ClassVariableReadNode node

Create a new ClassVariableTargetNode node

Create a new ConstantPathNode node

Create a new ConstantPathTargetNode node

Create a new ConstantTargetNode node

Create a new DefinedNode node

Create a new EmbeddedStatementsNode node

Create a new EmbeddedVariableNode node

Create a new FindPatternNode node

Create a new GlobalVariableReadNode node

Search took: 5ms  ·  Total Results: 3744