Sha256: 1f86c1019f42a7f94077a7aa80d03a9590ac4f993371b43b03ef0a9c354716d8

Contents?: true

Size: 1.15 KB

Versions: 22

Compression:

Stored size: 1.15 KB

Contents

#--
# $Id: describable.rb,v 1.5 2009/02/28 23:52:13 rmagick Exp $
# Copyright (C) 2009 Timothy P. Hunter
#++
module Magick
  class RVG
    #--
    # Corresponds to SVG's Description.class
    #++
    # This module defines a number of metadata attributes.
    module Describable
      private

      def initialize(*args, &block)
        super
        @title, @desc, @metadata = nil
      end

      public

      # Sets the object description
      attr_writer :desc
      # Sets the object title
      attr_writer :title
      # Sets the object metadata
      attr_writer :metadata

      # Returns the title of this object. The RVG object title is stored as
      # the 'title' property on the image
      def title
        @title.to_s
      end

      # Returns the description of this object. The RVG object description is
      # stored as the 'desc' property on the image
      def desc
        @desc.to_s
      end

      # Returns additional metadata of this object. The RVG object metadata
      # are stored as the 'metadata' property on the image
      def metadata
        @metadata.to_s
      end
    end # module Describable
  end # class RVG
end # module Magick

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rmagick-6.0.0 lib/rvg/describable.rb
rmagick-5.5.0 lib/rvg/describable.rb
rmagick-5.4.4 lib/rvg/describable.rb
rmagick-5.4.3 lib/rvg/describable.rb
rmagick-5.4.2 lib/rvg/describable.rb
rmagick-5.4.1 lib/rvg/describable.rb
rmagick-5.4.0 lib/rvg/describable.rb
rmagick-5.3.0 lib/rvg/describable.rb
rmagick-5.2.0 lib/rvg/describable.rb
rmagick-5.1.0 lib/rvg/describable.rb
rmagick-5.0.0 lib/rvg/describable.rb
rmagick-4.3.0 lib/rvg/describable.rb
rmagick-4.2.6 lib/rvg/describable.rb
rmagick-4.2.5 lib/rvg/describable.rb
rmagick-4.2.4 lib/rvg/describable.rb
rmagick-4.2.3 lib/rvg/describable.rb
rmagick-4.2.2 lib/rvg/describable.rb
rmagick-4.2.1 lib/rvg/describable.rb
rmagick-4.2.0 lib/rvg/describable.rb
rmagick-4.1.2 lib/rvg/describable.rb