Sha256: 32ce2fe7bb1ed448db35e4b4ac28e91901ef5638a3276fefc95670b73c5d7fbe

Contents?: true

Size: 1.37 KB

Versions: 18

Compression:

Stored size: 1.37 KB

Contents

#--
# $Id: describable.rb,v 1.4 2008/02/24 18:26:36 rmagick Exp $
# Copyright (C) 2008 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)       #:nodoc:
                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

18 entries across 18 versions & 2 rubygems

Version Path
rmagick4j-0.4.0-java lib/rvg/describable.rb
rmagick4j-0.3.9-java lib/rvg/describable.rb
rmagick4j-0.3.8 lib/rvg/describable.rb
rmagick-2.3.0 lib/rvg/describable.rb
rmagick-2.4.0 lib/rvg/describable.rb
rmagick-2.5.0 lib/rvg/describable.rb
rmagick-2.5.1 lib/rvg/describable.rb
rmagick-2.5.2 lib/rvg/describable.rb
rmagick-2.6.0 lib/rvg/describable.rb
rmagick-2.8.0 lib/rvg/describable.rb
rmagick-2.7.2 lib/rvg/describable.rb
rmagick-2.7.1 lib/rvg/describable.rb
rmagick-2.7.0 lib/rvg/describable.rb
rmagick4j-0.3.5 lib/rvg/describable.rb
rmagick-2.9.0 lib/rvg/describable.rb
rmagick-2.9.1 lib/rvg/describable.rb
rmagick4j-0.3.7 lib/rvg/describable.rb
rmagick4j-0.3.6 lib/rvg/describable.rb