Created
January 16, 2015 02:46
-
-
Save tranvictor/e826492ff9b3283b2526 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in lib/lotus/commands/console.rb | |
def load_engine(engine) | |
require engine | |
rescue LoadError | |
ensure | |
return Object.const_get( | |
ENGINES.fetch(engine) { | |
raise ArgumentError.new("Unknown console engine: #{ engine }") | |
} | |
).tap do |engine_obj| | |
# im trying to set the configuration here | |
engine_obj.conf[:SAVE_HISTORY] = 1000 if engine_obj.name == 'IRB' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment