Sha256: 503881d682119e2e053bb7b99f4ec5041ec2e0801a987b8d8ddd5ec7e33fc49f

Contents?: true

Size: 371 Bytes

Versions: 7

Compression:

Stored size: 371 Bytes

Contents

module Vidibus
  module Textile
    module Extensions
      module View
        extend ActiveSupport::Concern

        # Returns plain text without markup.
        # If option :plain is true, newlines will be removed.
        def stripped(string, options = {})
          string ? Vidibus::Textile.new(string).to_text(options) : ""
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vidibus-textile-0.3.0 lib/vidibus/textile/extensions/view.rb
vidibus-textile-0.2.4 lib/vidibus/textile/extensions/view.rb
vidibus-textile-0.2.3 lib/vidibus/textile/extensions/view.rb
vidibus-textile-0.2.2 lib/vidibus/textile/extensions/view.rb
vidibus-textile-0.2.1 lib/vidibus/textile/extensions/view.rb
vidibus-textile-0.2.0 lib/vidibus/textile/extensions/view.rb
vidibus-textile-0.1.0 lib/vidibus/textile/extensions/view.rb