Sha256: 7ba82486e059638997ca25e12656b91f187898ad822f2f9b34895cd52e210f24
Contents?: true
Size: 355 Bytes
Versions: 4
Compression:
Stored size: 355 Bytes
Contents
require 'virtus' require_relative 'presentation' require_relative '../support/terminal' module Vedeu class Stream include Virtus.model include Presentation attribute :text, String, default: '' def to_json Oj.dump(attributes, mode: :compat) end def to_s(options = {}) [colour, style, text].join end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.29 | lib/vedeu/models/stream.rb |
vedeu-0.0.28 | lib/vedeu/models/stream.rb |
vedeu-0.0.27 | lib/vedeu/models/stream.rb |
vedeu-0.0.26 | lib/vedeu/models/stream.rb |