lib/pfa/relative_pfa_node.rb in pfa-1.0.3 vs lib/pfa/relative_pfa_node.rb in pfa-1.1.0
- old
+ new
@@ -8,19 +8,23 @@
include PFAElementModule
include MagickPFA
attr_reader :pfa, :key
- attr_reader :description
-
def initialize(pfa, key, value = nil)
@pfa = pfa
@key = key
parse_raw_value(value)
end
def code_image_magick
pfa.img_builder.code_image_magick
+ end
+
+ def description(ensure_output = false)
+ @description || begin
+ ensure_output ? "" : nil
+ end
end
# --- MÉTHODES TEMPORELLES ---
# -- Temps relatifs --