Class: EideticRML::Styles::ParagraphStyle
- Defined in:
- lib/erml_styles.rb
Instance Method Summary collapse
Methods inherited from TextStyle
Methods included from HasColor
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
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 |