Method: Bio::Sim4::Report::Segment#initialize

Defined in:
lib/bio/appl/sim4/report.rb

#initialize(pos_st, pos_ed, seq = nil) ⇒ Segment

Creates a new Segment object. It is designed to be called internally from Bio::Sim4::Report::SegmentPair class. Users shall not use it directly.



253
254
255
256
257
# File 'lib/bio/appl/sim4/report.rb', line 253

def initialize(pos_st, pos_ed, seq = nil)
  @from = pos_st.to_i
  @to   = pos_ed.to_i
  @seq  = seq
end