Class: Hokusai::Clamping::Char

Inherits:
Object
  • Object
show all
Defined in:
ui/src/hokusai/font.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw) ⇒ Char

Returns a new instance of Char.



19
20
21
# File 'ui/src/hokusai/font.rb', line 19

def initialize(raw)
  @raw = raw
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



18
19
20
# File 'ui/src/hokusai/font.rb', line 18

def raw
  @raw
end

Instance Method Details

#offsetObject



27
28
29
# File 'ui/src/hokusai/font.rb', line 27

def offset
  raw[:offset]
end

#widthObject



23
24
25
# File 'ui/src/hokusai/font.rb', line 23

def width
  raw[:width]
end