Sha256: 618c2069eada2c0b3bd9e3061eb0a540150946b1256a48938a8c260ef0094d74
Contents?: true
Size: 362 Bytes
Versions: 4
Compression:
Stored size: 362 Bytes
Contents
module FormatParser class Document include FormatParser::AttributesJSON 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
format_parser-0.3.5 | lib/document.rb |
format_parser-0.3.4 | lib/document.rb |
format_parser-0.3.3 | lib/document.rb |
format_parser-0.3.2 | lib/document.rb |