Class: ActionMultipleLinker

Inherits:
SeqtrimAction show all
Defined in:
lib/seqtrimnext/actions/action_multiple_linker.rb

Instance Attribute Summary

Attributes inherited from SeqtrimAction

#cut, #end_pos, #found_definition, #informative, #left_action, #message, #reversed, #right_action, #start_pos, #tag_id

Instance Method Summary collapse

Methods inherited from SeqtrimAction

#action_type, #apply_to, #contains?, #contains_action?, #decorate, #description, #inspect, #left_action?, #near_left?, #right_action?, #title, #to_hash, #to_human, #type

Constructor Details

#initialize(start_pos, end_pos) ⇒ ActionMultipleLinker

Returns a new instance of ActionMultipleLinker.



11
12
13
14
# File 'lib/seqtrimnext/actions/action_multiple_linker.rb', line 11

def initialize(start_pos,end_pos)
  super(start_pos,end_pos)    
  @cut =true
end

Instance Method Details

#apply_decoration(char) ⇒ Object

def apply_to(seq)

  # seq.seq_fasta = seq.seq_fasta.slice(start_pos,end_pos)
  $LOG.debug " Applying #{self.class} to seq #{seq.seq_name} . BEGIN: #{@start_pos}   END: #{@end_pos}  "

end


23
24
25
26
# File 'lib/seqtrimnext/actions/action_multiple_linker.rb', line 23

def apply_decoration(char)
  return char.underline
  
end