class Stitches::Configuration::NonNullInteger

Public Class Methods

new(name, value) click to toggle source
# File lib/stitches/configuration.rb, line 82
def initialize(name, value)
  unless value.is_a?(Integer)
    raise "#{name} must be an Integer, not a #{value.class}"
  end

  @value = value
end

Public Instance Methods

to_i() click to toggle source
# File lib/stitches/configuration.rb, line 90
def to_i
  @value
end
Also aliased as: to_integer
to_integer()
Alias for: to_i