Class: Hokusai::Clamping::Char
- Inherits:
-
Object
- Object
- Hokusai::Clamping::Char
- Defined in:
- ui/src/hokusai/font.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(raw) ⇒ Char
constructor
A new instance of Char.
- #offset ⇒ Object
- #width ⇒ Object
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
#raw ⇒ Object (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
#offset ⇒ Object
27 28 29 |
# File 'ui/src/hokusai/font.rb', line 27 def offset raw[:offset] end |
#width ⇒ Object
23 24 25 |
# File 'ui/src/hokusai/font.rb', line 23 def width raw[:width] end |