class Stitches::Configuration::NonNullString

Public Class Methods

new(name,string) click to toggle source
# File lib/stitches/configuration.rb, line 98
def initialize(name,string)
  unless string.nil? || string.is_a?(String)
    raise "#{name} must be a String, not a #{string.class}"
  end
  if String(string).strip.length == 0
    raise "#{name} may not be blank"
  end
  @string = string
end

Public Instance Methods

to_s() click to toggle source
# File lib/stitches/configuration.rb, line 108
def to_s
  @string
end
Also aliased as: to_str
to_str()
Alias for: to_s