Class: Hornetseye::FourCC
- Defined in:
- docs/hornetseye-frame/lib/hornetseye-frame/fourcc.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(a, b, c, d = nil) ⇒ FourCC
constructor
A new instance of FourCC.
- #inspect ⇒ Object
- #rgb? ⇒ Boolean
- #to_s ⇒ Object
- #to_str ⇒ Object
Constructor Details
#initialize(a, b, c, d = nil) ⇒ FourCC
Returns a new instance of FourCC.
22 23 24 |
# File 'docs/hornetseye-frame/lib/hornetseye-frame/fourcc.rb', line 22 def initialize(a, b, c, d = nil) @a, @b, @c, @d = a, b, c, d end |
Instance Method Details
#==(other) ⇒ Object
42 43 44 |
# File 'docs/hornetseye-frame/lib/hornetseye-frame/fourcc.rb', line 42 def ==( other ) ( other.is_a? FourCC ) and ( other.inspect == inspect ) end |
#inspect ⇒ Object
26 27 28 |
# File 'docs/hornetseye-frame/lib/hornetseye-frame/fourcc.rb', line 26 def inspect to_s end |
#rgb? ⇒ Boolean
38 39 40 |
# File 'docs/hornetseye-frame/lib/hornetseye-frame/fourcc.rb', line 38 def rgb? true end |
#to_s ⇒ Object
30 31 32 |
# File 'docs/hornetseye-frame/lib/hornetseye-frame/fourcc.rb', line 30 def to_s "#{@a}#{@b}#{@c}#{@d ? @d : ''}" end |
#to_str ⇒ Object
34 35 36 |
# File 'docs/hornetseye-frame/lib/hornetseye-frame/fourcc.rb', line 34 def to_str to_s end |