Class: Bio::RestrictionEnzyme::CutSymbol::CutSymbol__

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/bio/util/restriction_enzyme/cut_symbol.rb

Overview

Class to keep state

Class Method Summary collapse

Class Method Details

.cut_symbolObject



96
# File 'lib/bio/util/restriction_enzyme/cut_symbol.rb', line 96

def self.cut_symbol; @cut_symbol; end

.cut_symbol=(glyph) ⇒ Object

Raises:

  • (ArgumentError)


98
99
100
101
# File 'lib/bio/util/restriction_enzyme/cut_symbol.rb', line 98

def self.cut_symbol=(glyph);
  raise ArgumentError if glyph.size != 1
  @cut_symbol = glyph
end

.escaped_cut_symbolObject



103
# File 'lib/bio/util/restriction_enzyme/cut_symbol.rb', line 103

def self.escaped_cut_symbol; "\\" + self.cut_symbol; end