Class: SiSU_Info_Processing_Flag::InfoProcessingFlag

Inherits:
Object
  • Object
show all
Defined in:
lib/sisu/se_processing.rb

Direct Known Subclasses

SiSU_Env::InfoProcessingFlag

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeInfoProcessingFlag

Returns a new instance of InfoProcessingFlag.



461
462
463
# File 'lib/sisu/se_processing.rb', line 461

def initialize
  @rc=SiSU_Get_Init::GetInit.new.sisu_yaml.rc
end

Instance Attribute Details

#act_0Object

configurable processing flag shortcuts



469
470
471
# File 'lib/sisu/se_processing.rb', line 469

def act_0
  @act_0
end

#act_1Object

configurable processing flag shortcuts



488
489
490
# File 'lib/sisu/se_processing.rb', line 488

def act_1
  @act_1
end

#act_2Object

configurable processing flag shortcuts



507
508
509
# File 'lib/sisu/se_processing.rb', line 507

def act_2
  @act_2
end

#act_3Object

configurable processing flag shortcuts



526
527
528
# File 'lib/sisu/se_processing.rb', line 526

def act_3
  @act_3
end

#act_4Object

configurable processing flag shortcuts



545
546
547
# File 'lib/sisu/se_processing.rb', line 545

def act_4
  @act_4
end

#act_5Object

configurable processing flag shortcuts



564
565
566
# File 'lib/sisu/se_processing.rb', line 564

def act_5
  @act_5
end

#act_6Object

configurable processing flag shortcuts



583
584
585
# File 'lib/sisu/se_processing.rb', line 583

def act_6
  @act_6
end

#act_7Object

configurable processing flag shortcuts



599
600
601
# File 'lib/sisu/se_processing.rb', line 599

def act_7
  @act_7
end

#act_8Object

configurable processing flag shortcuts



615
616
617
# File 'lib/sisu/se_processing.rb', line 615

def act_8
  @act_8
end

#act_9Object

configurable processing flag shortcuts



631
632
633
# File 'lib/sisu/se_processing.rb', line 631

def act_9
  @act_9
end

#colorObject

configurable processing flag shortcuts



464
465
466
# File 'lib/sisu/se_processing.rb', line 464

def color
  @color
end

Instance Method Details

#act_infoObject



647
648
649
650
651
652
653
654
# File 'lib/sisu/se_processing.rb', line 647

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

#arrObject



483
484
485
# File 'lib/sisu/se_processing.rb', line 483

def arr
  str.scan(/\S+/)
end

#defaultObject



470
471
472
# File 'lib/sisu/se_processing.rb', line 470

def default
  '--manifest --digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --verbose'
end

#strObject



473
474
475
476
477
478
479
480
481
482
# File 'lib/sisu/se_processing.rb', line 473

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