Sha256: 30ba6ba0278dddde3b34fedb5e3cf2415cc6e717ec786fef22447afdae0e423d

Contents?: true

Size: 430 Bytes

Versions: 5

Compression:

Stored size: 430 Bytes

Contents

require "ssmd/version"
require "ssmd/converter"

module SSMD
  module_function

  def to_ssml(ssmd)
    Converter.new(ssmd).convert
  end

  ##
  # Returns the given string without any SSMD annotations.
  # For instance for `hello *world*` would return `hello world`.
  #
  # @return [String]
  def strip_ssmd(ssmd)
    Converter.new(ssmd).strip
  end

  def root_dir
    Gem::Specification.find_by_name("ssmd").gem_dir
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ssmd-0.3.1 lib/ssmd.rb
ssmd-0.3.0 lib/ssmd.rb
ssmd-0.2.3 lib/ssmd.rb
ssmd-0.2.1 lib/ssmd.rb
ssmd-0.2.0 lib/ssmd.rb