Start streaming using encoding
Clears the GC profiler data.
Returns whether the form contained multipart/form-data
Generate a TextArea element, as a String
.
name
is the name of the textarea. cols
is the number of columns and rows
is the number of rows in the display.
Alternatively, the attributes can be specified as a hash.
The body is provided by the passed-in no-argument block
textarea("name") # = textarea("NAME" => "name", "COLS" => 70, "ROWS" => 10) textarea("name", 40, 5) # = textarea("NAME" => "name", "COLS" => 40, "ROWS" => 5)
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
returns a charset parameter in Content-Type field. It is downcased for canonicalization.
If charset parameter is not given but a block is given, the block is called and its result is returned. It can be used to guess charset.
If charset parameter and block is not given, nil is returned except text type. In that case, “utf-8” is returned as defined by RFC6838 4.2.1
Parses self
destructively and returns self
containing the rest arguments left unparsed.
Create a new AliasGlobalVariableNode
node
Create a new ArgumentsNode
node
Create a new BlockArgumentNode
node
Create a new BlockLocalVariableNode
node
Create a new CallOperatorWriteNode
node
Create a new CallTargetNode
node
Create a new ClassVariableAndWriteNode
node
Create a new ClassVariableOrWriteNode
node
Create a new ClassVariableReadNode
node
Create a new ClassVariableWriteNode
node
Create a new ConstantOperatorWriteNode
node
Create a new ConstantPathOperatorWriteNode
node
Create a new ConstantPathTargetNode
node
Create a new ConstantTargetNode
node
Create a new EmbeddedVariableNode
node
Create a new ForwardingSuperNode
node