syssign

dsa.syssign(string) â aString Instance Public methods Computes and returns the DSA signature of string, where string is expected to be an already-computed message digest of the original input data. The signature is issued using the private key of this DSA instance. Parameters string is a message digest of the original input data to be signed Example dsa = OpenSSL::PKey::DSA.new(2048) doc = "Sign me" digest = OpenSSL::Digest::SHA1.digest(doc) sig = dsa.syssign(digest)

selection_clear

selection_clear() Instance Public methods

to_der

to_der() Instance Public methods

new

GDBM.new(filename, mode = 0666, flags = nil) Class Public methods Creates a new GDBM instance by opening a gdbm file named filename. If the file does not exist, a new file with file mode mode will be created. flags may be one of the following: READER - open as a reader WRITER - open as a writer WRCREAT - open as a writer; if the database does not exist, create a new one NEWDB - open as a writer; overwrite any existing databases The values WRITER, WRCREAT and NEWDB ma

configure

configure(key, value=None) Instance Public methods

validators

validators() Instance Public methods List all validators that are being used to validate the model using validates_with method. class Person include ActiveModel::Validations validates_with MyValidator validates_with OtherValidator, on: :create validates_with StrictValidator, strict: true end Person.validators # => [ # #<MyValidator:0x007fbff403e808 @options={}>, # #<OtherValidator:0x007fbff403d930 @options={on: :create}>, # #<StrictValidat

activate

activate(index) Instance Public methods

after_validation

after_validation(*args, &block) Instance Public methods Defines a callback that will get called right after validation happens. class Person include ActiveModel::Validations include ActiveModel::Validations::Callbacks attr_accessor :name, :status validates_presence_of :name after_validation :set_status private def set_status self.status = errors.empty? end end person = Person.new person.name = '' person.valid? # => false person.status # => false

_thread_tkwait

_thread_tkwait(mode, target) Class Public methods

style

style(*args) Class Public methods