class Nineteen::Eighty::Two::Span

Public Class Methods

new(type, width) click to toggle source
# File lib/nineteen/eighty/two.rb, line 23
def initialize type, width
  self[type] = width
end

Public Instance Methods

type() click to toggle source
# File lib/nineteen/eighty/two.rb, line 27
def type
  self.keys.first
end
width() click to toggle source
# File lib/nineteen/eighty/two.rb, line 31
def width
  self.values.first
end