Sha256: 0cf5556aab2b85d92bc069d3c8532fd61584e53924b08e09ddfb4ead497e4574

Contents?: true

Size: 349 Bytes

Versions: 6

Compression:

Stored size: 349 Bytes

Contents

require 'rabbit/canvas'

module Rabbit
  class CommentCanvas < Canvas
    def quit
      toggle_comment_view
    end

    def saved_image_base_name
      super + "_comment"
    end

    def filename=(new_filename)
      if new_filename.nil?
        super(new_filename)
      else
        super(new_filename + "_comment")
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rabbit-0.9.2 lib/rabbit/comment-canvas.rb
rabbit-0.9.1 lib/rabbit/comment-canvas.rb
rabbit-0.9.0 lib/rabbit/comment-canvas.rb
rabbit-0.6.4 lib/rabbit/comment-canvas.rb
rabbit-0.6.3 lib/rabbit/comment-canvas.rb
rabbit-0.6.2 lib/rabbit/comment-canvas.rb