bovem 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/Bovem.html +1 -1
- data/doc/Bovem/Configuration.html +1 -1
- data/doc/Bovem/Console.html +243 -43
- data/doc/Bovem/ConsoleMethods.html +1 -1
- data/doc/Bovem/ConsoleMethods/Interactions.html +1 -1
- data/doc/Bovem/ConsoleMethods/Interactions/ClassMethods.html +1 -1
- data/doc/Bovem/ConsoleMethods/Logging.html +1 -1
- data/doc/Bovem/ConsoleMethods/Logging/ClassMethods.html +1 -1
- data/doc/Bovem/ConsoleMethods/Output.html +1 -1
- data/doc/Bovem/ConsoleMethods/StyleHandling.html +1 -1
- data/doc/Bovem/ConsoleMethods/StyleHandling/ClassMethods.html +1 -1
- data/doc/Bovem/Errors.html +1 -1
- data/doc/Bovem/Errors/InvalidConfiguration.html +1 -1
- data/doc/Bovem/Errors/InvalidLogger.html +1 -1
- data/doc/Bovem/Logger.html +232 -140
- data/doc/Bovem/Shell.html +56 -16
- data/doc/Bovem/ShellMethods.html +1 -1
- data/doc/Bovem/ShellMethods/Directories.html +1 -1
- data/doc/Bovem/ShellMethods/Execute.html +1 -1
- data/doc/Bovem/ShellMethods/General.html +1 -1
- data/doc/Bovem/ShellMethods/Read.html +1 -1
- data/doc/Bovem/ShellMethods/Write.html +1 -1
- data/doc/Bovem/Version.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +18 -26
- data/doc/top-level-namespace.html +1 -1
- data/lib/bovem/console.rb +8 -4
- data/lib/bovem/logger.rb +8 -3
- data/lib/bovem/shell.rb +2 -1
- data/lib/bovem/version.rb +1 -1
- metadata +1 -1
data/doc/Bovem.html
CHANGED
@@ -158,7 +158,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
158
158
|
</div>
|
159
159
|
|
160
160
|
<div id="footer">
|
161
|
-
Generated on
|
161
|
+
Generated on Sat Feb 2 09:25:37 2013 by
|
162
162
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
163
163
|
0.8.3 (ruby-1.9.3).
|
164
164
|
</div>
|
@@ -576,7 +576,7 @@ config.property = "VALUE"
|
|
576
576
|
</div>
|
577
577
|
|
578
578
|
<div id="footer">
|
579
|
-
Generated on
|
579
|
+
Generated on Sat Feb 2 09:25:38 2013 by
|
580
580
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
581
581
|
0.8.3 (ruby-1.9.3).
|
582
582
|
</div>
|
data/doc/Bovem/Console.html
CHANGED
@@ -373,16 +373,16 @@
|
|
373
373
|
<pre class="lines">
|
374
374
|
|
375
375
|
|
376
|
-
636
|
377
|
-
637
|
378
|
-
638
|
379
|
-
639
|
380
376
|
640
|
381
377
|
641
|
382
|
-
642
|
378
|
+
642
|
379
|
+
643
|
380
|
+
644
|
381
|
+
645
|
382
|
+
646</pre>
|
383
383
|
</td>
|
384
384
|
<td>
|
385
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
385
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 640</span>
|
386
386
|
|
387
387
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
388
388
|
<span class='ivar'>@line_width</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_screen_width'>get_screen_width</span>
|
@@ -432,7 +432,7 @@
|
|
432
432
|
|
433
433
|
|
434
434
|
—
|
435
|
-
<div class='inline'><p>
|
435
|
+
<div class='inline'><p>Current indentation width.</p>
|
436
436
|
</div>
|
437
437
|
|
438
438
|
</li>
|
@@ -445,15 +445,65 @@
|
|
445
445
|
<pre class="lines">
|
446
446
|
|
447
447
|
|
448
|
-
|
449
|
-
|
450
|
-
|
448
|
+
620
|
449
|
+
621
|
450
|
+
622
|
451
|
+
623
|
452
|
+
624
|
453
|
+
625
|
454
|
+
626
|
455
|
+
627
|
456
|
+
628
|
457
|
+
629
|
458
|
+
630
|
459
|
+
631
|
460
|
+
632
|
461
|
+
633
|
462
|
+
634
|
463
|
+
635
|
464
|
+
636
|
465
|
+
637
|
466
|
+
638
|
467
|
+
639
|
468
|
+
640
|
469
|
+
641
|
470
|
+
642
|
471
|
+
643
|
472
|
+
644
|
473
|
+
645
|
474
|
+
646
|
475
|
+
647</pre>
|
451
476
|
</td>
|
452
477
|
<td>
|
453
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
454
|
-
|
455
|
-
<span class='kw'>
|
456
|
-
<span class='
|
478
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 620</span>
|
479
|
+
|
480
|
+
<span class='kw'>class</span> <span class='const'>Console</span>
|
481
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:line_width</span>
|
482
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:screen_width</span>
|
483
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:indentation</span>
|
484
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:indentation_string</span>
|
485
|
+
|
486
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Lazier</span><span class='op'>::</span><span class='const'>I18n</span>
|
487
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ConsoleMethods</span><span class='op'>::</span><span class='const'>StyleHandling</span>
|
488
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ConsoleMethods</span><span class='op'>::</span><span class='const'>Output</span>
|
489
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ConsoleMethods</span><span class='op'>::</span><span class='const'>Logging</span>
|
490
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ConsoleMethods</span><span class='op'>::</span><span class='const'>Interactions</span>
|
491
|
+
|
492
|
+
<span class='comment'># Returns a unique instance for Console.
|
493
|
+
</span> <span class='comment'>#
|
494
|
+
</span> <span class='comment'># @return [Console] A new instance.
|
495
|
+
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
496
|
+
<span class='ivar'>@instance</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
497
|
+
<span class='kw'>end</span>
|
498
|
+
|
499
|
+
<span class='comment'># Initializes a new Console.
|
500
|
+
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
501
|
+
<span class='ivar'>@line_width</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_screen_width'>get_screen_width</span>
|
502
|
+
<span class='ivar'>@indentation</span> <span class='op'>=</span> <span class='int'>0</span>
|
503
|
+
<span class='ivar'>@indentation_string</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span>
|
504
|
+
<span class='ivar'>@stty</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_execute'>execute</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>which stty</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span>
|
505
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_i18n_setup'>i18n_setup</span><span class='lparen'>(</span><span class='symbol'>:bovem</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
|
506
|
+
<span class='kw'>end</span>
|
457
507
|
<span class='kw'>end</span></pre>
|
458
508
|
</td>
|
459
509
|
</tr>
|
@@ -491,7 +541,7 @@
|
|
491
541
|
|
492
542
|
|
493
543
|
—
|
494
|
-
<div class='inline'><p>
|
544
|
+
<div class='inline'><p>The string used for indentation.</p>
|
495
545
|
</div>
|
496
546
|
|
497
547
|
</li>
|
@@ -504,15 +554,65 @@
|
|
504
554
|
<pre class="lines">
|
505
555
|
|
506
556
|
|
507
|
-
|
508
|
-
|
509
|
-
|
557
|
+
620
|
558
|
+
621
|
559
|
+
622
|
560
|
+
623
|
561
|
+
624
|
562
|
+
625
|
563
|
+
626
|
564
|
+
627
|
565
|
+
628
|
566
|
+
629
|
567
|
+
630
|
568
|
+
631
|
569
|
+
632
|
570
|
+
633
|
571
|
+
634
|
572
|
+
635
|
573
|
+
636
|
574
|
+
637
|
575
|
+
638
|
576
|
+
639
|
577
|
+
640
|
578
|
+
641
|
579
|
+
642
|
580
|
+
643
|
581
|
+
644
|
582
|
+
645
|
583
|
+
646
|
584
|
+
647</pre>
|
510
585
|
</td>
|
511
586
|
<td>
|
512
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
513
|
-
|
514
|
-
<span class='kw'>
|
515
|
-
<span class='
|
587
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 620</span>
|
588
|
+
|
589
|
+
<span class='kw'>class</span> <span class='const'>Console</span>
|
590
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:line_width</span>
|
591
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:screen_width</span>
|
592
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:indentation</span>
|
593
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:indentation_string</span>
|
594
|
+
|
595
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Lazier</span><span class='op'>::</span><span class='const'>I18n</span>
|
596
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ConsoleMethods</span><span class='op'>::</span><span class='const'>StyleHandling</span>
|
597
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ConsoleMethods</span><span class='op'>::</span><span class='const'>Output</span>
|
598
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ConsoleMethods</span><span class='op'>::</span><span class='const'>Logging</span>
|
599
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ConsoleMethods</span><span class='op'>::</span><span class='const'>Interactions</span>
|
600
|
+
|
601
|
+
<span class='comment'># Returns a unique instance for Console.
|
602
|
+
</span> <span class='comment'>#
|
603
|
+
</span> <span class='comment'># @return [Console] A new instance.
|
604
|
+
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
605
|
+
<span class='ivar'>@instance</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
606
|
+
<span class='kw'>end</span>
|
607
|
+
|
608
|
+
<span class='comment'># Initializes a new Console.
|
609
|
+
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
610
|
+
<span class='ivar'>@line_width</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_screen_width'>get_screen_width</span>
|
611
|
+
<span class='ivar'>@indentation</span> <span class='op'>=</span> <span class='int'>0</span>
|
612
|
+
<span class='ivar'>@indentation_string</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span>
|
613
|
+
<span class='ivar'>@stty</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_execute'>execute</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>which stty</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span>
|
614
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_i18n_setup'>i18n_setup</span><span class='lparen'>(</span><span class='symbol'>:bovem</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
|
615
|
+
<span class='kw'>end</span>
|
516
616
|
<span class='kw'>end</span></pre>
|
517
617
|
</td>
|
518
618
|
</tr>
|
@@ -550,7 +650,7 @@
|
|
550
650
|
|
551
651
|
|
552
652
|
—
|
553
|
-
<div class='inline'><p>
|
653
|
+
<div class='inline'><p>The line width. Default to <code>80</code>.</p>
|
554
654
|
</div>
|
555
655
|
|
556
656
|
</li>
|
@@ -563,15 +663,65 @@
|
|
563
663
|
<pre class="lines">
|
564
664
|
|
565
665
|
|
566
|
-
|
567
|
-
|
568
|
-
|
666
|
+
620
|
667
|
+
621
|
668
|
+
622
|
669
|
+
623
|
670
|
+
624
|
671
|
+
625
|
672
|
+
626
|
673
|
+
627
|
674
|
+
628
|
675
|
+
629
|
676
|
+
630
|
677
|
+
631
|
678
|
+
632
|
679
|
+
633
|
680
|
+
634
|
681
|
+
635
|
682
|
+
636
|
683
|
+
637
|
684
|
+
638
|
685
|
+
639
|
686
|
+
640
|
687
|
+
641
|
688
|
+
642
|
689
|
+
643
|
690
|
+
644
|
691
|
+
645
|
692
|
+
646
|
693
|
+
647</pre>
|
569
694
|
</td>
|
570
695
|
<td>
|
571
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
572
|
-
|
573
|
-
<span class='kw'>
|
574
|
-
<span class='
|
696
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 620</span>
|
697
|
+
|
698
|
+
<span class='kw'>class</span> <span class='const'>Console</span>
|
699
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:line_width</span>
|
700
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:screen_width</span>
|
701
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:indentation</span>
|
702
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:indentation_string</span>
|
703
|
+
|
704
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Lazier</span><span class='op'>::</span><span class='const'>I18n</span>
|
705
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ConsoleMethods</span><span class='op'>::</span><span class='const'>StyleHandling</span>
|
706
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ConsoleMethods</span><span class='op'>::</span><span class='const'>Output</span>
|
707
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ConsoleMethods</span><span class='op'>::</span><span class='const'>Logging</span>
|
708
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ConsoleMethods</span><span class='op'>::</span><span class='const'>Interactions</span>
|
709
|
+
|
710
|
+
<span class='comment'># Returns a unique instance for Console.
|
711
|
+
</span> <span class='comment'>#
|
712
|
+
</span> <span class='comment'># @return [Console] A new instance.
|
713
|
+
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
714
|
+
<span class='ivar'>@instance</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
715
|
+
<span class='kw'>end</span>
|
716
|
+
|
717
|
+
<span class='comment'># Initializes a new Console.
|
718
|
+
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
719
|
+
<span class='ivar'>@line_width</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_screen_width'>get_screen_width</span>
|
720
|
+
<span class='ivar'>@indentation</span> <span class='op'>=</span> <span class='int'>0</span>
|
721
|
+
<span class='ivar'>@indentation_string</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span>
|
722
|
+
<span class='ivar'>@stty</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_execute'>execute</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>which stty</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span>
|
723
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_i18n_setup'>i18n_setup</span><span class='lparen'>(</span><span class='symbol'>:bovem</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
|
724
|
+
<span class='kw'>end</span>
|
575
725
|
<span class='kw'>end</span></pre>
|
576
726
|
</td>
|
577
727
|
</tr>
|
@@ -609,7 +759,7 @@
|
|
609
759
|
|
610
760
|
|
611
761
|
—
|
612
|
-
<div class='inline'><p>
|
762
|
+
<div class='inline'><p>The current screen width.</p>
|
613
763
|
</div>
|
614
764
|
|
615
765
|
</li>
|
@@ -622,15 +772,65 @@
|
|
622
772
|
<pre class="lines">
|
623
773
|
|
624
774
|
|
625
|
-
|
626
|
-
|
627
|
-
|
775
|
+
620
|
776
|
+
621
|
777
|
+
622
|
778
|
+
623
|
779
|
+
624
|
780
|
+
625
|
781
|
+
626
|
782
|
+
627
|
783
|
+
628
|
784
|
+
629
|
785
|
+
630
|
786
|
+
631
|
787
|
+
632
|
788
|
+
633
|
789
|
+
634
|
790
|
+
635
|
791
|
+
636
|
792
|
+
637
|
793
|
+
638
|
794
|
+
639
|
795
|
+
640
|
796
|
+
641
|
797
|
+
642
|
798
|
+
643
|
799
|
+
644
|
800
|
+
645
|
801
|
+
646
|
802
|
+
647</pre>
|
628
803
|
</td>
|
629
804
|
<td>
|
630
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
631
|
-
|
632
|
-
<span class='kw'>
|
633
|
-
<span class='
|
805
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 620</span>
|
806
|
+
|
807
|
+
<span class='kw'>class</span> <span class='const'>Console</span>
|
808
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:line_width</span>
|
809
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:screen_width</span>
|
810
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:indentation</span>
|
811
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:indentation_string</span>
|
812
|
+
|
813
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Lazier</span><span class='op'>::</span><span class='const'>I18n</span>
|
814
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ConsoleMethods</span><span class='op'>::</span><span class='const'>StyleHandling</span>
|
815
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ConsoleMethods</span><span class='op'>::</span><span class='const'>Output</span>
|
816
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ConsoleMethods</span><span class='op'>::</span><span class='const'>Logging</span>
|
817
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'>Bovem</span><span class='op'>::</span><span class='const'>ConsoleMethods</span><span class='op'>::</span><span class='const'>Interactions</span>
|
818
|
+
|
819
|
+
<span class='comment'># Returns a unique instance for Console.
|
820
|
+
</span> <span class='comment'>#
|
821
|
+
</span> <span class='comment'># @return [Console] A new instance.
|
822
|
+
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
823
|
+
<span class='ivar'>@instance</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
824
|
+
<span class='kw'>end</span>
|
825
|
+
|
826
|
+
<span class='comment'># Initializes a new Console.
|
827
|
+
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
828
|
+
<span class='ivar'>@line_width</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_screen_width'>get_screen_width</span>
|
829
|
+
<span class='ivar'>@indentation</span> <span class='op'>=</span> <span class='int'>0</span>
|
830
|
+
<span class='ivar'>@indentation_string</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span>
|
831
|
+
<span class='ivar'>@stty</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_execute'>execute</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>which stty</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span>
|
832
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_i18n_setup'>i18n_setup</span><span class='lparen'>(</span><span class='symbol'>:bovem</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Pathname</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/../../locales/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
|
833
|
+
<span class='kw'>end</span>
|
634
834
|
<span class='kw'>end</span></pre>
|
635
835
|
</td>
|
636
836
|
</tr>
|
@@ -686,12 +886,12 @@
|
|
686
886
|
<pre class="lines">
|
687
887
|
|
688
888
|
|
689
|
-
|
690
|
-
|
691
|
-
|
889
|
+
635
|
890
|
+
636
|
891
|
+
637</pre>
|
692
892
|
</td>
|
693
893
|
<td>
|
694
|
-
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line
|
894
|
+
<pre class="code"><span class="info file"># File 'lib/bovem/console.rb', line 635</span>
|
695
895
|
|
696
896
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance'>instance</span>
|
697
897
|
<span class='ivar'>@instance</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>Bovem</span><span class='op'>::</span><span class='const'>Console</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
@@ -706,7 +906,7 @@
|
|
706
906
|
</div>
|
707
907
|
|
708
908
|
<div id="footer">
|
709
|
-
Generated on
|
909
|
+
Generated on Sat Feb 2 09:25:38 2013 by
|
710
910
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
711
911
|
0.8.3 (ruby-1.9.3).
|
712
912
|
</div>
|
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Sat Feb 2 09:25:37 2013 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.8.3 (ruby-1.9.3).
|
122
122
|
</div>
|
@@ -566,7 +566,7 @@
|
|
566
566
|
</div>
|
567
567
|
|
568
568
|
<div id="footer">
|
569
|
-
Generated on
|
569
|
+
Generated on Sat Feb 2 09:25:37 2013 by
|
570
570
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
571
571
|
0.8.3 (ruby-1.9.3).
|
572
572
|
</div>
|
@@ -222,7 +222,7 @@
|
|
222
222
|
</div>
|
223
223
|
|
224
224
|
<div id="footer">
|
225
|
-
Generated on
|
225
|
+
Generated on Sat Feb 2 09:25:37 2013 by
|
226
226
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
227
227
|
0.8.3 (ruby-1.9.3).
|
228
228
|
</div>
|
@@ -2209,7 +2209,7 @@
|
|
2209
2209
|
</div>
|
2210
2210
|
|
2211
2211
|
<div id="footer">
|
2212
|
-
Generated on
|
2212
|
+
Generated on Sat Feb 2 09:25:37 2013 by
|
2213
2213
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2214
2214
|
0.8.3 (ruby-1.9.3).
|
2215
2215
|
</div>
|
@@ -203,7 +203,7 @@
|
|
203
203
|
</div>
|
204
204
|
|
205
205
|
<div id="footer">
|
206
|
-
Generated on
|
206
|
+
Generated on Sat Feb 2 09:25:37 2013 by
|
207
207
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
208
208
|
0.8.3 (ruby-1.9.3).
|
209
209
|
</div>
|
@@ -1204,7 +1204,7 @@
|
|
1204
1204
|
</div>
|
1205
1205
|
|
1206
1206
|
<div id="footer">
|
1207
|
-
Generated on
|
1207
|
+
Generated on Sat Feb 2 09:25:37 2013 by
|
1208
1208
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1209
1209
|
0.8.3 (ruby-1.9.3).
|
1210
1210
|
</div>
|