Sha256: 6d695753447142e28fb1b7b3cfaa23a22da248ba6ed835089645ba25103aa0ed
Contents?: true
Size: 320 Bytes
Versions: 3
Compression:
Stored size: 320 Bytes
Contents
module FormatParser class Document NATURE = :document attr_accessor :format attr_accessor :document_type # Only permits assignments via defined accessors def initialize(**attributes) attributes.map { |(k, v)| public_send("#{k}=", v) } end def nature NATURE end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
format_parser-0.3.1 | lib/document.rb |
format_parser-0.3.0 | lib/document.rb |
format_parser-0.2.0 | lib/document.rb |