Class: Fontisan::Ufo::Lib

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#dataObject (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