Class: SiSU_Info_Processing_Flag::InfoProcessingFlag
- Inherits:
-
Object
- Object
- SiSU_Info_Processing_Flag::InfoProcessingFlag
- Defined in:
- lib/sisu/se_processing.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#act_0 ⇒ Object
configurable processing flag shortcuts.
-
#act_1 ⇒ Object
configurable processing flag shortcuts.
-
#act_2 ⇒ Object
configurable processing flag shortcuts.
-
#act_3 ⇒ Object
configurable processing flag shortcuts.
-
#act_4 ⇒ Object
configurable processing flag shortcuts.
-
#act_5 ⇒ Object
configurable processing flag shortcuts.
-
#act_6 ⇒ Object
configurable processing flag shortcuts.
-
#act_7 ⇒ Object
configurable processing flag shortcuts.
-
#act_8 ⇒ Object
configurable processing flag shortcuts.
-
#act_9 ⇒ Object
configurable processing flag shortcuts.
-
#color ⇒ Object
configurable processing flag shortcuts.
Instance Method Summary collapse
- #act_info ⇒ Object
- #arr ⇒ Object
- #default ⇒ Object
-
#initialize ⇒ InfoProcessingFlag
constructor
A new instance of InfoProcessingFlag.
- #str ⇒ Object
Constructor Details
#initialize ⇒ InfoProcessingFlag
Returns a new instance of InfoProcessingFlag.
463 464 465 |
# File 'lib/sisu/se_processing.rb', line 463 def initialize @rc=SiSU_Get_Init::GetInit.new.sisu_yaml.rc end |
Instance Attribute Details
#act_0 ⇒ Object
configurable processing flag shortcuts
471 472 473 |
# File 'lib/sisu/se_processing.rb', line 471 def act_0 @act_0 end |
#act_1 ⇒ Object
configurable processing flag shortcuts
490 491 492 |
# File 'lib/sisu/se_processing.rb', line 490 def act_1 @act_1 end |
#act_2 ⇒ Object
configurable processing flag shortcuts
509 510 511 |
# File 'lib/sisu/se_processing.rb', line 509 def act_2 @act_2 end |
#act_3 ⇒ Object
configurable processing flag shortcuts
528 529 530 |
# File 'lib/sisu/se_processing.rb', line 528 def act_3 @act_3 end |
#act_4 ⇒ Object
configurable processing flag shortcuts
547 548 549 |
# File 'lib/sisu/se_processing.rb', line 547 def act_4 @act_4 end |
#act_5 ⇒ Object
configurable processing flag shortcuts
566 567 568 |
# File 'lib/sisu/se_processing.rb', line 566 def act_5 @act_5 end |
#act_6 ⇒ Object
configurable processing flag shortcuts
585 586 587 |
# File 'lib/sisu/se_processing.rb', line 585 def act_6 @act_6 end |
#act_7 ⇒ Object
configurable processing flag shortcuts
601 602 603 |
# File 'lib/sisu/se_processing.rb', line 601 def act_7 @act_7 end |
#act_8 ⇒ Object
configurable processing flag shortcuts
617 618 619 |
# File 'lib/sisu/se_processing.rb', line 617 def act_8 @act_8 end |
#act_9 ⇒ Object
configurable processing flag shortcuts
633 634 635 |
# File 'lib/sisu/se_processing.rb', line 633 def act_9 @act_9 end |
#color ⇒ Object
configurable processing flag shortcuts
466 467 468 |
# File 'lib/sisu/se_processing.rb', line 466 def color @color end |
Instance Method Details
#act_info ⇒ Object
649 650 651 652 653 654 655 656 |
# File 'lib/sisu/se_processing.rb', line 649 def act_info puts 'current "act" settings:' acts=%w[ act_0 act_1 act_2 act_3 act_4 act_5 act_6 act_7 act_8 act_9 ] acts.each_with_index do |m,i| puts '--act-' + i.to_s + ' == ' \ + send(m).str end end |
#arr ⇒ Object
485 486 487 |
# File 'lib/sisu/se_processing.rb', line 485 def arr str.scan(/\S+/) end |
#default ⇒ Object
472 473 474 |
# File 'lib/sisu/se_processing.rb', line 472 def default '--manifest --digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --verbose' end |
#str ⇒ Object
475 476 477 478 479 480 481 482 483 484 |
# File 'lib/sisu/se_processing.rb', line 475 def str if defined? @rc['flag']['act0'] \ and @rc['flag']['act0'].is_a?(String) @rc['flag']['act0'] elsif defined? @rc['flag']['default'] \ and @rc['flag']['default'].is_a?(String) @rc['flag']['default'] else default end end |