class RbSafe::Strength

Attributes

message[R]
strength[R]
valid[R]

Public Class Methods

new(valid, strength, message) click to toggle source
# File lib/rb_safe/safe.rb, line 33
def initialize(valid, strength, message)
  @valid = valid
  @strength = strength
  @message = message
end

Public Instance Methods

bool() click to toggle source
# File lib/rb_safe/safe.rb, line 39
def bool
  # TODO: take a look at this method, maybe choose another name.
  @valid
end
inspect() click to toggle source
# File lib/rb_safe/safe.rb, line 44
def inspect
  @strength
end
to_s() click to toggle source
# File lib/rb_safe/safe.rb, line 48
def to_s
  @message
end