Class: Bio::MAF::Member

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/maf/struct.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(offset, name, type) ⇒ Member

Returns a new instance of Member



51
52
53
54
55
56
57
58
# File 'lib/bio/maf/struct.rb', line 51

def initialize(offset, name, type)
  @offset = offset
  @name = name
  @type = type
  props = TYPE_PROPS.fetch(type)
  @size = props.fetch(:size)
  @fmt = props.fetch(:fmt)
end

Instance Attribute Details

#fmtObject (readonly)



50
51
52
# File 'lib/bio/maf/struct.rb', line 50

def fmt
  @fmt
end

#nameObject (readonly)



50
51
52
# File 'lib/bio/maf/struct.rb', line 50

def name
  @name
end

#offsetObject (readonly)



50
51
52
# File 'lib/bio/maf/struct.rb', line 50

def offset
  @offset
end

#sizeObject (readonly)



50
51
52
# File 'lib/bio/maf/struct.rb', line 50

def size
  @size
end

#typeObject (readonly)



50
51
52
# File 'lib/bio/maf/struct.rb', line 50

def type
  @type
end