Class: ChunkyPNG::Chunk::Generic
Direct Known Subclasses
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type, content = '') ⇒ Generic
constructor
A new instance of Generic.
Methods inherited from Base
Constructor Details
#initialize(type, content = '') ⇒ Generic
Returns a new instance of Generic.
37 38 39 |
# File 'lib/chunky_png/chunk.rb', line 37 def initialize(type, content = '') super(type, :content => content) end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
35 36 37 |
# File 'lib/chunky_png/chunk.rb', line 35 def content @content end |
Class Method Details
.read(type, content) ⇒ Object
41 42 43 |
# File 'lib/chunky_png/chunk.rb', line 41 def self.read(type, content) self.new(type, content) end |