Sha256: 3f71c58892a4c1eafce659aa3f77bab78fff77b8a400ee98bf3518239f2a9d40
Contents?: true
Size: 857 Bytes
Versions: 9
Compression:
Stored size: 857 Bytes
Contents
%w{ active_support/dependencies/autoload active_support/core_ext/object/blank active_support/core_ext/numeric/time active_support/core_ext/enumerable niceogiri }.each { |f| require f } module RubySpeech extend ActiveSupport::Autoload autoload :Version eager_autoload do autoload :GenericElement autoload :SSML autoload :GRXML autoload :NLSML autoload :XML end def self.parse(string) document = Nokogiri::XML.parse string, nil, nil, Nokogiri::XML::ParseOptions::NOBLANKS namespace = document.root.namespace case namespace && namespace.href when SSML::SSML_NAMESPACE SSML::Element.import string when GRXML::GRXML_NAMESPACE GRXML::Element.import string when NLSML::NLSML_NAMESPACE, nil NLSML::Document.new document end end end ActiveSupport::Autoload.eager_autoload!
Version data entries
9 entries across 9 versions & 1 rubygems