Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

move ToLang::CODEMAP require to string_methods.rb

  • Loading branch information...
commit 4542029e218620891d44800899b7efcbb6942e50 1 parent 0bc5f65
Jimmy Cuadra authored

Showing 2 changed files with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/to_lang.rb
  2. +2 0  lib/to_lang/string_methods.rb
2  lib/to_lang.rb
... ... @@ -1,4 +1,3 @@
1   -require File.expand_path("../to_lang/codemap", __FILE__)
2 1 require File.expand_path("../to_lang/connector", __FILE__)
3 2 require File.expand_path("../to_lang/string_methods", __FILE__)
4 3
@@ -12,6 +11,7 @@ class << self
12 11 # A {ToLang::Connector} object to use for translation requests.
13 12 #
14 13 # @return [ToLang::Constructor, NilClass] An initialized {ToLang::Connector connector} or nil.
  14 + #
15 15 attr_reader :connector
16 16
17 17 # Initializes {ToLang}, after which the translation methods will be available from strings.
2  lib/to_lang/string_methods.rb
... ... @@ -1,3 +1,5 @@
  1 +require File.expand_path("../codemap", __FILE__)
  2 +
1 3 module ToLang
2 4 # The methods {ToLang} will mix into the String class when initialized.
3 5 #

0 comments on commit 4542029

Please sign in to comment.
Something went wrong with that request. Please try again.