Sha256: 659610f406416d89ca8fd288cb23cf24996ba1b176d623d53e64b5d57d528e67

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true
class ContentSpinning

  class String < ::String

    def initialize(text)
      self.<<(text)
    end

    def cleaned
      self
    end

    def count
      1
    end

    def inspect
      "<String {#{inspect}}>"
    end

    def random
      self
    end

    def spin
      [self]
    end

    def to_source
      self
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
content_spinning-0.3.1 lib/content_spinning/string.rb