cmdr 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/cmdr.rb +3 -8
  2. metadata +1 -1
data/lib/cmdr.rb CHANGED
@@ -11,9 +11,7 @@ class Cmdr
11
11
 
12
12
  def initialize(opt={}, app_mgr=nil)
13
13
 
14
- o = {
15
- public:
16
- {
14
+ opt[:public].merge!({
17
15
  alias: {},
18
16
  user:
19
17
  {'-1' =>
@@ -22,13 +20,10 @@ class Cmdr
22
20
  {list: [], index: []}
23
21
  }
24
22
  }
25
- },
26
- config: {bottom_up_display: true}
27
- }
28
-
29
- opt.merge!(o)
23
+ })
30
24
 
31
25
  @v = opt[:public]
26
+ @bottom_up_display = opt[:config] and opt[:config][:bottom_up_display] ? opt[:config][:bottom_up_display] : true
32
27
  @@app = app_mgr
33
28
 
34
29
  super()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmdr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors: []
7
7