Class: ActionRightPrimer
- Inherits:
-
SeqtrimAction
- Object
- SeqtrimAction
- ActionRightPrimer
- Defined in:
- lib/seqtrimnext/actions/action_right_primer.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
-
#apply_decoration(char) ⇒ Object
def apply_to(seq).
-
#initialize(start_pos, end_pos) ⇒ ActionRightPrimer
constructor
A new instance of ActionRightPrimer.
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) ⇒ ActionRightPrimer
Returns a new instance of ActionRightPrimer.
5 6 7 8 9 |
# File 'lib/seqtrimnext/actions/action_right_primer.rb', line 5 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} . BEGIN: #{@start_pos} END: #{@end_pos} "
end
18 19 20 21 22 |
# File 'lib/seqtrimnext/actions/action_right_primer.rb', line 18 def apply_decoration(char) return char.blue.underline # return char.magenta.negative end |