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.
62 63 64 |
# File 'lib/chunky_png/chunk.rb', line 62 def initialize(type, content = '') super(type, :content => content) end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
60 61 62 |
# File 'lib/chunky_png/chunk.rb', line 60 def content @content end |
Class Method Details
.read(type, content) ⇒ Object
66 67 68 |
# File 'lib/chunky_png/chunk.rb', line 66 def self.read(type, content) self.new(type, content) end |