Module: Rosetta

Defined in:
lib/rosetta.rb,
lib/rosetta/element.rb,
lib/rosetta/support.rb,
lib/rosetta/version.rb,
lib/rosetta/exceptions.rb,
lib/rosetta/serializers.rb,
lib/rosetta/translation.rb,
lib/rosetta/deserializers.rb,
lib/rosetta/serializers/csv.rb,
lib/rosetta/serializers/base.rb,
lib/rosetta/deserializers/base.rb,
lib/rosetta/deserializers/json.rb,
lib/rosetta/support/registerable.rb,
lib/rosetta/support/string_refinement.rb

Defined Under Namespace

Modules: Deserializers, Serializers, Support Classes: ConversionError, DeserializationError, Element, ExistingDeserializerError, ExistingSerializerError, ExistingTranslatorError, RegistrationError, SerializationError, Translation, TranslationError, UnknownDeserializer, UnknownSerializer

Constant Summary collapse

VERSION =
"0.2.4"

Class Method Summary collapse

Class Method Details

.translate(input, from:, to:) ⇒ Object



5
6
7
# File 'lib/rosetta.rb', line 5

def translate(input, from:, to:)
  Translation.new(from, to).call(input)
end