Sha256: ecae8daff890384a73f6c19338b5d84a2c960a8a63345af326eca5a2cb18eafc
Contents?: true
Size: 508 Bytes
Versions: 1
Compression:
Stored size: 508 Bytes
Contents
require_relative "../metacrunch" class Metacrunch::File require_relative "./file/reader" require_relative "./file/writer" attr_accessor :content attr_accessor :entry_name # equals file_name for plain files attr_accessor :file_name def initialize(options = {}) @content = options[:content] @entry_name = options[:entry_name] @file_name = options[:file_name] end def to_h { content: @content, entry_name: @entry_name, file_name: @file_name } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metacrunch-2.2.3 | lib/metacrunch/file.rb |