Class: MyFonts::Face
- Includes:
- Previewable
- Defined in:
- lib/myfonts/face.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
- #family ⇒ Object
-
#initialize(url, name = nil) ⇒ Face
constructor
A new instance of Face.
- #name ⇒ Object
Methods included from Previewable
Methods inherited from Model
Constructor Details
#initialize(url, name = nil) ⇒ Face
Returns a new instance of Face.
8 9 10 11 |
# File 'lib/myfonts/face.rb', line 8 def initialize(url, name=nil) @name = name super(url) end |
Instance Method Details
#family ⇒ Object
17 18 19 |
# File 'lib/myfonts/face.rb', line 17 def family @family ||= get_family end |
#name ⇒ Object
13 14 15 |
# File 'lib/myfonts/face.rb', line 13 def name @name ||= get_name end |