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

Instance Method Details

#fontObject

— 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_asciiObject



22
23
24
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 22

def font_ascii
  fonts&.ascii
end

#font_csObject



34
35
36
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 34

def font_cs
  fonts&.cs
end

#font_east_asiaObject



26
27
28
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 26

def font_east_asia
  fonts&.east_asia
end

#font_h_ansiObject



30
31
32
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 30

def font_h_ansi
  fonts&.h_ansi
end

#language_bidiObject



48
49
50
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 48

def language_bidi
  language&.bidi
end

#language_east_asiaObject



44
45
46
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 44

def language_east_asia
  language&.east_asia
end

#language_valObject

— Language accessors —



40
41
42
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 40

def language_val
  language&.val
end

#shading_colorObject



62
63
64
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 62

def shading_color
  shading&.fill
end

#shading_fillObject

— Shading accessors —



54
55
56
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 54

def shading_fill
  shading&.fill
end

#shading_typeObject



58
59
60
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 58

def shading_type
  shading&.pattern
end

#text_expansionObject

— Misc accessors —



68
69
70
# File 'lib/uniword/wordprocessingml/run_properties/accessors.rb', line 68

def text_expansion
  width_scale
end