Module: FLV::Body::InstanceMethods

Defined in:
lib/flvedit/flv/body.rb

Instance Method Summary collapse

Instance Method Details

#debug(format) ⇒ Object

:nodoc



15
16
17
# File 'lib/flvedit/flv/body.rb', line 15

def debug(format, *) #:nodoc
  format.values(to_hash)
end

#is?(what) ⇒ Boolean

Returns:

  • (Boolean)


19
20
21
22
23
24
25
26
# File 'lib/flvedit/flv/body.rb', line 19

def is?(what)
  case what
    when String, Symbol
      super(what.to_s.downcase.gsub!(/_tag$/, "") || :never_match_on_class_name_unless_string_ends_with_tag)
    else
      super
  end
end

#similar_to?(other_body) ⇒ Boolean

Returns:

  • (Boolean)


28
29
30
31
# File 'lib/flvedit/flv/body.rb', line 28

def similar_to?(other_body)
  getters.each{|getter| return false unless send(getter) == other_body.send(getter)}
  true
end

#titleObject



33
34
35
# File 'lib/flvedit/flv/body.rb', line 33

def title
  self.class.name + " tag"
end