From e9365708ca242a2f4104adcd9551743b505894f8 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sat, 2 Apr 2005 22:05:24 +0000 Subject: [PATCH] Made 'text_class' and 'color_class' parameters writable. --- ChangeLog | 6 +++++- lib/redact/part.rb | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8d3b24e..53c95dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,11 @@ -- -$Id: ChangeLog 18 2005-04-02 21:45:24Z tilman $ +$Id: ChangeLog 19 2005-04-02 22:05:24Z tilman $ ++ +2005-04-03 Tilman Sauerbeck (tilman at code-monkey de) + * lib/redact/part.rb: Made 'text_class' and 'color_class' parameters + writable + 2005-04-02 Tilman Sauerbeck (tilman at code-monkey de) * lib/redact/part.rb: Made 'step' and 'aspect' parameters configurable diff --git a/lib/redact/part.rb b/lib/redact/part.rb index 395b536..4d6cf9f 100644 --- a/lib/redact/part.rb +++ b/lib/redact/part.rb @@ -1,5 +1,5 @@ #-- -# $Id: part.rb 18 2005-04-02 21:45:24Z tilman $ +# $Id: part.rb 19 2005-04-02 22:05:24Z tilman $ # # Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de) # @@ -212,7 +212,7 @@ module Redact class Description attr_reader :rel, :aspect, :step - attr_accessor :visible, :aspect_preference + attr_accessor :visible, :aspect_preference, :color_class def initialize(name = "default", value = 0.0) @name = name.to_str.dup.freeze @@ -454,7 +454,7 @@ module Redact class TextDescription < Description attr_reader :font - attr_accessor :text, :font_size + attr_accessor :text, :font_size, :text_class def initialize(name = "default", value = 0.0) super -- 2.30.2