Module: YandexTranslator
- Defined in:
- lib/yat.rb,
lib/yat/config.rb,
lib/yat/errors.rb,
lib/yat/medium.rb,
lib/yat/connection.rb,
lib/parsers/xml_parser.rb,
lib/parsers/json_parser.rb
Defined Under Namespace
Classes: Configuration, Connection, JSONParser, Medium, NoApiKey, ReturnCodeException, XMLParser, Yat
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
3 4 5 |
# File 'lib/yat/config.rb', line 3 def configuration @configuration end |
Class Method Details
.configure ⇒ Object
6 7 8 9 |
# File 'lib/yat/config.rb', line 6 def self.configure self.configuration ||= Configuration.new yield(self.configuration) rescue self.configuration end |