Sha256: 867109d9ac0c131c878c0dd58ea278b2398a9ea1faee686ddb444511a5802c6e

Contents?: true

Size: 1.21 KB

Versions: 8

Compression:

Stored size: 1.21 KB

Contents

#--
# $Id: describable.rb,v 1.2 2005/12/31 14:41:04 rmagick Exp $
# Copyright (C) 2006 Timothy P. Hunter
#++

class Magick::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 Magick::RVG

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rmagick-1.10.0 lib/rvg/describable.rb
rmagick-1.10.1 lib/rvg/describable.rb
rmagick-1.11.0 lib/rvg/describable.rb
rmagick-1.11.1 lib/rvg/describable.rb
rmagick-1.12.0 lib/rvg/describable.rb
rmagick-1.13.0 lib/rvg/describable.rb
rmagick-1.14.0 lib/rvg/describable.rb
rmagick-1.14.1 lib/rvg/describable.rb