Class: Fontisan::Ufo::Features

Inherits:
Object
  • Object
show all
Defined in:
lib/fontisan/ufo/features.rb

Overview

Wrapper around the FEA feature source in features.fea.

The MVP just stores the raw text. A FEA parser/compiler lands in TODO 08 (feature writers).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text: "") ⇒ Features

Returns a new instance of Features.



12
13
14
# File 'lib/fontisan/ufo/features.rb', line 12

def initialize(text: "")
  @text = text
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



10
11
12
# File 'lib/fontisan/ufo/features.rb', line 10

def text
  @text
end