Module: Uniword::Wordprocessingml::RunProperties::Accessors
- Included in:
- Uniword::Wordprocessingml::RunProperties
- Defined in:
- lib/uniword/wordprocessingml/run_properties/accessors.rb
Overview
Convenience getter methods for RunProperties.
Delegates to wrapper objects (RunFonts, Language, Shading) for ergonomic access to nested properties.
Instance Method Summary collapse
-
#font ⇒ Object
--- Font accessors ---.
- #font=(value) ⇒ Object
- #font_ascii ⇒ Object
- #font_cs ⇒ Object
- #font_east_asia ⇒ Object
- #font_h_ansi ⇒ Object
- #language_bidi ⇒ Object
- #language_east_asia ⇒ Object
-
#language_val ⇒ Object
--- Language accessors ---.
- #shading_color ⇒ Object
-
#shading_fill ⇒ Object
--- Shading accessors ---.
- #shading_type ⇒ Object
-
#text_expansion ⇒ Object
--- Misc accessors ---.
Instance Method Details
#font ⇒ Object
--- Font accessors ---
13 14 15 |
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 13 def font fonts&.ascii end |
#font=(value) ⇒ Object
17 18 19 20 |
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 17 def font=(value) self.fonts ||= Properties::RunFonts.new fonts.ascii = value end |
#font_ascii ⇒ Object
22 23 24 |
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 22 def font_ascii fonts&.ascii end |
#font_cs ⇒ Object
34 35 36 |
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 34 def font_cs fonts&.cs end |
#font_east_asia ⇒ Object
26 27 28 |
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 26 def font_east_asia fonts&.east_asia end |
#font_h_ansi ⇒ Object
30 31 32 |
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 30 def font_h_ansi fonts&.h_ansi end |
#language_bidi ⇒ Object
48 49 50 |
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 48 def language_bidi language&.bidi end |
#language_east_asia ⇒ Object
44 45 46 |
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 44 def language_east_asia language&.east_asia end |
#language_val ⇒ Object
--- Language accessors ---
40 41 42 |
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 40 def language_val language&.val end |
#shading_color ⇒ Object
62 63 64 |
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 62 def shading_color shading&.fill end |
#shading_fill ⇒ Object
--- Shading accessors ---
54 55 56 |
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 54 def shading_fill shading&.fill end |
#shading_type ⇒ Object
58 59 60 |
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 58 def shading_type shading&.pattern end |
#text_expansion ⇒ Object
--- Misc accessors ---
68 69 70 |
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 68 def text_expansion width_scale end |