maker_target

maker_target(target) Instance Public methods

validators_on

validators_on(*attributes) Instance Public methods List all validators that are being used to validate a specific attribute. class Person include ActiveModel::Validations attr_accessor :name , :age validates_presence_of :name validates_inclusion_of :age, in: 0..99 end Person.validators_on(:name) # => [ # #<ActiveModel::Validations::PresenceValidator:0x007fe604914e60 @attributes=[:name], @options={}>, # ]

tojis

String#tojis => string Instance Public methods Convert self to ISO-2022-JP

===

rxp === str â true or false Instance Public methods Case EqualityâUsed in case statements. a = "HELLO" case a when /^[a-z]*$/; print "Lower case\n" when /^[A-Z]*$/; print "Upper case\n" else; print "Mixed case\n" end #=> "Upper case" Following a regular expression literal with the === operator allows you to compare against a String. /^[a-z]*$/ === "HELLO" #=> false /^[A-Z]*$/ === "HELLO" #=> true

history_add

history_add(text) Instance Public methods

reload

reload() Instance Public methods Reload groups from the database

_set_variable

_set_variable(var, value, flag) Class Public methods

shuffle

ary.shuffle â new_aryary.shuffle(random: rng) â new_ary Instance Public methods Returns a new array with elements of self shuffled. a = [ 1, 2, 3 ] #=> [1, 2, 3] a.shuffle #=> [2, 3, 1] The optional rng argument will be used as the random number generator. a.shuffle(random: Random.new(1)) #=> [1, 3, 2]

precs

precs Instance Public methods Returns an Array of two Integer values. The first value is the current number of significant digits in the BigDecimal. The second value is the maximum number of significant digits for the BigDecimal.

selection_anchor

selection_anchor(index) Instance Public methods