Class: Font
- Inherits:
-
Object
- Object
- Font
- Defined in:
- lib/font.rb
Class Attribute Summary collapse
-
.default_bold ⇒ Object
Returns the value of attribute default_bold.
-
.default_color ⇒ Object
Returns the value of attribute default_color.
-
.default_italic ⇒ Object
Returns the value of attribute default_italic.
-
.default_name ⇒ Object
Returns the value of attribute default_name.
-
.default_out_color ⇒ Object
Returns the value of attribute default_out_color.
-
.default_outline ⇒ Object
Returns the value of attribute default_outline.
-
.default_shadow ⇒ Object
Returns the value of attribute default_shadow.
-
.default_size ⇒ Object
Returns the value of attribute default_size.
Instance Attribute Summary collapse
-
#bold ⇒ Object
Returns the value of attribute bold.
-
#color ⇒ Object
Returns the value of attribute color.
-
#italic ⇒ Object
Returns the value of attribute italic.
-
#name ⇒ Object
Returns the value of attribute name.
-
#out_color ⇒ Object
Returns the value of attribute out_color.
-
#outline ⇒ Object
Returns the value of attribute outline.
-
#shadow ⇒ Object
Returns the value of attribute shadow.
-
#size ⇒ Object
Returns the value of attribute size.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name = nil, size = nil) ⇒ Font
constructor
A new instance of Font.
Constructor Details
#initialize(name = nil, size = nil) ⇒ Font
Returns a new instance of Font.
3 4 5 |
# File 'lib/font.rb', line 3 def initialize(name = nil, size = nil) fail NotImplementedError end |
Class Attribute Details
.default_bold ⇒ Object
Returns the value of attribute default_bold.
33 34 35 |
# File 'lib/font.rb', line 33 def default_bold @default_bold end |
.default_color ⇒ Object
Returns the value of attribute default_color.
41 42 43 |
# File 'lib/font.rb', line 41 def default_color @default_color end |
.default_italic ⇒ Object
Returns the value of attribute default_italic.
35 36 37 |
# File 'lib/font.rb', line 35 def default_italic @default_italic end |
.default_name ⇒ Object
Returns the value of attribute default_name.
29 30 31 |
# File 'lib/font.rb', line 29 def default_name @default_name end |
.default_out_color ⇒ Object
Returns the value of attribute default_out_color.
43 44 45 |
# File 'lib/font.rb', line 43 def default_out_color @default_out_color end |
.default_outline ⇒ Object
Returns the value of attribute default_outline.
39 40 41 |
# File 'lib/font.rb', line 39 def default_outline @default_outline end |
.default_shadow ⇒ Object
Returns the value of attribute default_shadow.
37 38 39 |
# File 'lib/font.rb', line 37 def default_shadow @default_shadow end |
.default_size ⇒ Object
Returns the value of attribute default_size.
31 32 33 |
# File 'lib/font.rb', line 31 def default_size @default_size end |
Instance Attribute Details
#bold ⇒ Object
Returns the value of attribute bold.
15 16 17 |
# File 'lib/font.rb', line 15 def bold @bold end |
#color ⇒ Object
Returns the value of attribute color.
23 24 25 |
# File 'lib/font.rb', line 23 def color @color end |
#italic ⇒ Object
Returns the value of attribute italic.
17 18 19 |
# File 'lib/font.rb', line 17 def italic @italic end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/font.rb', line 11 def name @name end |
#out_color ⇒ Object
Returns the value of attribute out_color.
25 26 27 |
# File 'lib/font.rb', line 25 def out_color @out_color end |
#outline ⇒ Object
Returns the value of attribute outline.
19 20 21 |
# File 'lib/font.rb', line 19 def outline @outline end |
#shadow ⇒ Object
Returns the value of attribute shadow.
21 22 23 |
# File 'lib/font.rb', line 21 def shadow @shadow end |
#size ⇒ Object
Returns the value of attribute size.
13 14 15 |
# File 'lib/font.rb', line 13 def size @size end |
Class Method Details
.exist?(name) ⇒ Boolean
7 8 9 |
# File 'lib/font.rb', line 7 def self.exist?(name) fail NotImplementedError end |