Module: SwfFile::Conversions
- Included in:
- SwfHeader
- Defined in:
- lib/swf_file/conversions.rb
Defined Under Namespace
Instance Method Summary collapse
Instance Method Details
#to_hash ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/swf_file/conversions.rb', line 9 def to_hash { :file => @file, :signature => @signature, :version => @version, :avm_version => @avm_version, :size => @size, :bit_count => @bit_count, :xmax => @xmax, :ymax => @ymax, :width => @width, :height => @height, :frame_rate => @frame_rate, :frame_count => @frame_count } end |
#to_s ⇒ Object
5 6 7 |
# File 'lib/swf_file/conversions.rb', line 5 def to_s "#{@file} #{@width}x#{@height} #{@frame_rate}fps" end |