Class: ActionUnexpectedPolyT
- Inherits:
-
SeqtrimAction
- Object
- SeqtrimAction
- ActionUnexpectedPolyT
- Defined in:
- lib/seqtrimnext/actions/action_unexpected_poly_t.rb
Overview
Author: Almudena Bocinos Rioboo
Defines the main methods that are necessary to execute Plugin1
Inherit: Plugin
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
-
#initialize(start_pos, end_pos) ⇒ ActionUnexpectedPolyT
constructor
A new instance of ActionUnexpectedPolyT.
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) ⇒ ActionUnexpectedPolyT
Returns a new instance of ActionUnexpectedPolyT.
11 12 13 14 |
# File 'lib/seqtrimnext/actions/action_unexpected_poly_t.rb', line 11 def initialize(start_pos,end_pos) super(start_pos,end_pos) @cut =true end |
Instance Method Details
#apply_decoration(char) ⇒ Object
24 25 26 |
# File 'lib/seqtrimnext/actions/action_unexpected_poly_t.rb', line 24 def apply_decoration(char) return char.bold end |