Class: RGFA::Line::Comment

Inherits:
RGFA::Line show all
Defined in:
lib/rgfa/line/comment.rb

Overview

A comment line of a RGFA file

Constant Summary collapse

RECORD_TYPE =
:"#"
REQFIELDS =
[:content]
PREDEFINED_OPTFIELDS =
[]
DATATYPE =
{
  :content => :cmt,
}

Constants inherited from RGFA::Line

DELAYED_PARSING_DATATYPES, DIRECTION, FIELD_DATATYPE, OPTFIELD_DATATYPE, ORIENTATION, RECORD_TYPES, RECORD_TYPE_LABELS, REQFIELD_DATATYPE, SEPARATOR

Instance Method Summary collapse

Methods inherited from RGFA::Line

#==, #clone, #delete, #field_to_s, #fieldnames, #get, #get!, #get_datatype, #initialize, #method_missing, #optional_fieldnames, #real!, #record_type, #required_fieldnames, #respond_to?, #set, #set_datatype, subclass, #tags, #to_a, #to_rgfa_line, #validate!, #validate_field!, #virtual?

Constructor Details

This class inherits a constructor from RGFA::Line

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RGFA::Line

Instance Method Details

#to_sObject



13
14
15
# File 'lib/rgfa/line/comment.rb', line 13

def to_s
  "##{content}"
end