Skip to content
Browse files

add legay configatron support

  • Loading branch information...
1 parent daf5d81 commit b1ea3c0a49c0be124e8f432d6824159c55b60af1 @Sixeight Sixeight committed
Showing with 12 additions and 3 deletions.
  1. +12 −3 lib/termtter/config.rb
View
15 lib/termtter/config.rb
@@ -1,6 +1,18 @@
# -*- coding: utf-8 -*-
#
+
+def config
+ Termtter::Config.instance
+end
+
+def configatron
+ # remove this method until Termtter-1.2.0
+ warn "configatron method will be removed. Use config instead. (#{caller.first})"
+ Termtter::Config.instance
+end
+
module Termtter
+
class Config
instance_methods.reject {|i| /__/ =~ i }.each do |f|
undef_method f
@@ -47,6 +59,3 @@ def self.instance
end
end
-def config
- Termtter::Config.instance
-end

0 comments on commit b1ea3c0

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