Results for: "OptionParser"

Yields to a block and preserves the previous set of objects being printed.

Removes an object from the set of objects being pretty printed.

Creates a self-signed certificate with an issuer and subject from email, a subject alternative name of email and the given extensions for the key.

Retrieves the pre-configured API key key or terminates interaction with an error.

Returns true when the user has enabled multifactor authentication from response text and no otp provided by options.

No documentation available

Allows Gem::OptionParser to handle HTTP URIs.

No documentation available

Asks for a password with a prompt

Asks the user to answer question with an answer from the given list.

Pops the most recent action from the log and undoes the action @param [DependencyGraph] graph @return [Action] the action that was popped off the log

@return [Array<Vertex>] the vertices of {#graph} that have an edge with

`self` as their {Edge#destination}

@return [Array<Vertex>] the vertices of {#graph} that have an edge with

`self` as their {Edge#origin}

(see Gem::Resolver::Molinillo::ResolutionState#activated)

(see Gem::Resolver::Molinillo::ResolutionState#possibilities)

(see Gem::Resolver::Molinillo::ResolutionState#depth)

(see Gem::Resolver::Molinillo::ResolutionState#conflicts)

Checks if ios starts with a BOM, and then consumes it and sets the external encoding. Returns the result encoding if found, or nil. If ios is not binmode or its encoding has been set already, an exception will be raised.

File.write("bom.txt", "\u{FEFF}abc")
ios = File.open("bom.txt", "rb")
ios.set_encoding_by_bom    #=>  #<Encoding:UTF-8>

File.write("nobom.txt", "abc")
ios = File.open("nobom.txt", "rb")
ios.set_encoding_by_bom    #=>  nil
No documentation available

Returns value specified by the member name of VT_RECORD OLE object. If the member name is not correct, KeyError exception is raised. If you can’t access member variable of VT_RECORD OLE object directly, use this method.

If COM server in VB.NET ComServer project is the following:

Imports System.Runtime.InteropServices
Public Class ComClass
    Public Structure ComObject
        Public object_id As Ineger
    End Structure
End Class

and Ruby Object class has title attribute:

then accessing object_id of ComObject from Ruby is as the following:

srver = WIN32OLE.new('ComServer.ComClass')
obj = WIN32OLE_RECORD.new('ComObject', server)
# obj.object_id returns Ruby Object#object_id
obj.ole_instance_variable_get(:object_id) # => nil

Open the specified filename (either in read-only mode or in read-write mode) and lock it for reading or writing.

The opened File object will be returned. If read_only is true, and the file does not exist, then nil will be returned.

All exceptions are propagated.

Returns the last win32 socket Error of the current executing Thread or nil if none

Sets the last win32 socket Error of the current executing Thread to error

Encodes given str to URL-encoded form data.

This method doesn’t convert *, -, ., 0-9, A-Z, _, a-z, but does convert SP (ASCII space) to + and converts others to %XX.

If enc is given, convert str to the encoding before percent encoding.

This is an implementation of www.w3.org/TR/2013/CR-html5-20130806/forms.html#url-encoded-form-data.

See URI.decode_www_form_component, URI.encode_www_form.

Decodes given str of URL-encoded form data.

This decodes + to SP.

See URI.encode_www_form_component, URI.decode_www_form.

Search took: 6ms  ·  Total Results: 3860