class Sepa::StringWithConstraint

Attributes

string[RW]

Public Class Methods

new(s) click to toggle source
# File lib/sepa/base.rb, line 5
def initialize s
  self.string = constrain s
end

Public Instance Methods

empty?() click to toggle source
# File lib/sepa/base.rb, line 9
def empty?
  (self.string == nil) || (self.string == '')
end
to_s() click to toggle source
# File lib/sepa/base.rb, line 13
def to_s
  self.string
end