Sha256: 9c963d585781a718a7118d1c80949364b359efeff87e07662c09471023085e89

Contents?: true

Size: 422 Bytes

Versions: 4

Compression:

Stored size: 422 Bytes

Contents

require File.dirname(__FILE__) + "/../../node/base"
module FN
  module SWF
    module Node
      def Image(name, file)
        FN::Node::Base("image", :name => name, :file => file).extend(Image)
      end
      
      module Image 
        include FN::Node::Base
      
        def visit(struct)
          has_no_children
          struct << %[.jpeg #{self[:name]} "#{self[:file]}"]
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fn_document-0.9.6 lib/fn/swf/node/image.rb
fn_document-0.9.4 lib/fn/swf/node/image.rb
fn_document-0.9.3 lib/fn/swf/node/image.rb
fn_document-0.9.2 lib/fn/swf/node/image.rb