Sha256: a4f60fe4fc187264014c273be1a1620e6d1aa0e5975aa34d4c1087771310d359
Contents?: true
Size: 382 Bytes
Versions: 13
Compression:
Stored size: 382 Bytes
Contents
# frozen_string_literal: true require "tmpdir" module Vectory class Image class << self def from_path(path) new(File.read(path, mode: "rb")) end def from_content(content) new(content) end end attr_reader :content def initialize(content) @content = content end private attr_writer :content end end
Version data entries
13 entries across 13 versions & 1 rubygems