Class: Fontisan::Ufo::Lib
- Inherits:
-
Object
- Object
- Fontisan::Ufo::Lib
- Defined in:
- lib/fontisan/ufo/lib.rb
Overview
Custom font-wide data from lib.plist. Generic key/value store.
Not used by standard UFO compilation, but downstream tools may
read it.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize(values = {}) ⇒ Lib
constructor
A new instance of Lib.
Constructor Details
#initialize(values = {}) ⇒ Lib
Returns a new instance of Lib.
11 12 13 |
# File 'lib/fontisan/ufo/lib.rb', line 11 def initialize(values = {}) @data = values end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
9 10 11 |
# File 'lib/fontisan/ufo/lib.rb', line 9 def data @data end |
Instance Method Details
#[](key) ⇒ Object
15 16 17 |
# File 'lib/fontisan/ufo/lib.rb', line 15 def [](key) @data[key.to_s] end |
#[]=(key, value) ⇒ Object
19 20 21 |
# File 'lib/fontisan/ufo/lib.rb', line 19 def []=(key, value) @data[key.to_s] = value end |