opened?

opened? Class Public methods Returns true if the syslog is open.

submit_tag

submit_tag(value = "Save changes", options = {}) Instance Public methods Creates a submit button with the text value as the caption. Options :data - This option can be used to add custom data attributes. :disabled - If true, the user will not be able to use this input. Any other key creates standard HTML options for the tag. Data attributes confirm: 'question?' - If present the unobtrusive JavaScript drivers will provide a prompt with the question specified. If the user ac

write

write(tuple, sec=nil) Instance Public methods Adds tuple to the proxied TupleSpace. See Rinda::TupleSpace#write.

>=

fix >= real â true or false Instance Public methods Returns true if the value of fix is greater than or equal to that of real.

new

new(*) Class Public methods

absolute_path

File.absolute_path(file_name [, dir_string] ) â abs_file_name Class Public methods Converts a pathname to an absolute pathname. Relative paths are referenced from the current working directory of the process unless dir_string is given, in which case it will be used as the starting point. If the given pathname starts with a â~'' it is NOT expanded, it is treated as a normal directory name. File.absolute_path("~oracle/bin") #=> "<relative_path>/~oracle/bin"

clear_validators!

clear_validators!() Instance Public methods Clears all of the validators and validations. Note that this will clear anything that is being used to validate the model for both the validates_with and validate methods. It clears the validators that are created with an invocation of validates_with and the callbacks that are set by an invocation of validate. class Person include ActiveModel::Validations validates_with MyValidator validates_with OtherValidator, on: :create valid

scalar

emitter.scalar(value, anchor, tag, plain, quoted, style) Instance Public methods Emit a scalar with value, anchor, tag, and a plain or quoted string type with style. See Psych::Handler#scalar

validates_each

validates_each(*attr_names, &block) Instance Public methods Validates each attribute against a block. class Person include ActiveModel::Validations attr_accessor :first_name, :last_name validates_each :first_name, :last_name, allow_blank: true do |record, attr, value| record.errors.add attr, 'starts with z.' if value.to_s[0] == ?z end end Options: :on - Specifies the contexts where this validation is active. You can pass a symbol or an array of symbols. (e.g. on

load

load(file) Class Public methods Loads Ruby format gemspec from file.