Sha256: 24348a802aa01b31c677b838ab01e3605498feb082d0767f31348a3f58ec9ac9

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 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(to_ssml(ssmd)).strip
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ssmd-0.2.2 lib/ssmd.rb