Sha256: d3fa34668c28ce5fee72fede3f049bde2acc4a954d1e4551e52ca497684a8d94

Contents?: true

Size: 484 Bytes

Versions: 12

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

require_relative './record'

module Fusuma
  module Plugin
    module Events
      module Records
        # Default Record
        class TextRecord < Record
          # @param text [String]
          def initialize(text)
            super()
            @text = text
          end

          def type
            :text
          end

          # @return [String]
          def to_s
            @text
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fusuma-2.4.1 lib/fusuma/plugin/events/records/text_record.rb
fusuma-2.4.0 lib/fusuma/plugin/events/records/text_record.rb
fusuma-2.3.0 lib/fusuma/plugin/events/records/text_record.rb
fusuma-2.2.0 lib/fusuma/plugin/events/records/text_record.rb
fusuma-2.1.0 lib/fusuma/plugin/events/records/text_record.rb
fusuma-2.0.5 lib/fusuma/plugin/events/records/text_record.rb
fusuma-2.0.4 lib/fusuma/plugin/events/records/text_record.rb
fusuma-2.0.3 lib/fusuma/plugin/events/records/text_record.rb
fusuma-2.0.2 lib/fusuma/plugin/events/records/text_record.rb
fusuma-2.0.1 lib/fusuma/plugin/events/records/text_record.rb
fusuma-2.0.0 lib/fusuma/plugin/events/records/text_record.rb
fusuma-2.0.0.pre2 lib/fusuma/plugin/events/records/text_record.rb