Class: ConfigSize

Inherits:
ConfigString show all
Defined in:
lib/helpers.rb

Instance Method Summary collapse

Methods inherited from ConfigString

#add, #clear, #initialize, #name, #set, #to_s, #value

Constructor Details

This class inherits a constructor from ConfigString

Instance Method Details

#check(value) ⇒ Object



99
100
101
102
103
104
105
# File 'lib/helpers.rb', line 99

def check(value)
  if value.class == Size then
    value
  else
    Size.new(value)
  end
end

#format(value) ⇒ Object



107
108
109
# File 'lib/helpers.rb', line 107

def format(value)
  value.short
end