Module: Merb::Global::MessageProviders::Base::Exporter

Included in:
ActiveRecord, DataMapper, Gettext, Sequel, Yaml
Defined in:
lib/merb_global/message_providers.rb

Overview

Some sources are not only read-only but one can write to them. The provider is exporter if it handles this sort of source.

Instance Method Summary collapse

Instance Method Details

#export(data) ⇒ Object

The method export the data from specified format into destination The format is nearly dump of the current YAML format.

Parameters

data<~each>

Data in the specified format.

Raises

NoMethodError

Raised by default implementation. Should not be thrown.

Raises:

  • (NoMethodError)


112
113
114
# File 'lib/merb_global/message_providers.rb', line 112

def export(data) # TODO: Describe the format
  raise NoMethodError.new('method import has not been implemented')
end