Class: EideticRML::Styles::ParagraphStyle

Inherits:
TextStyle show all
Defined in:
lib/erml_styles.rb

Instance Method Summary collapse

Methods inherited from TextStyle

#text_align

Methods included from HasColor

#color

Methods inherited from Style

for_name, #from_points, #id, #initialize, #initialize_copy, register

Methods included from EideticRML::Support

#from_units, parse_measurement, parse_measurement_pts, #to_units

Constructor Details

This class inherits a constructor from EideticRML::Styles::Style

Instance Method Details

#apply(writer) ⇒ Object



237
238
239
240
# File 'lib/erml_styles.rb', line 237

def apply(writer)
  super(writer)
  @bullet.apply(writer) unless @bullet.nil?
end

#bullet(value = nil) ⇒ Object

Raises:

  • (ArgumentError)


242
243
244
245
246
247
# File 'lib/erml_styles.rb', line 242

def bullet(value=nil)
  return @bullet if value.nil?
  b = @styles.for_id(value)
  raise ArgumentError, "Bullet Style #{value} not found." unless b.is_a?(Styles::BulletStyle)
  @bullet = b
end