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.



55
56
57
58
59
60
61
62
# File 'lib/bio/maf/struct.rb', line 55

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)



54
55
56
# File 'lib/bio/maf/struct.rb', line 54

def fmt
  @fmt
end

#nameObject (readonly)



54
55
56
# File 'lib/bio/maf/struct.rb', line 54

def name
  @name
end

#offsetObject (readonly)



54
55
56
# File 'lib/bio/maf/struct.rb', line 54

def offset
  @offset
end

#sizeObject (readonly)



54
55
56
# File 'lib/bio/maf/struct.rb', line 54

def size
  @size
end

#typeObject (readonly)



54
55
56
# File 'lib/bio/maf/struct.rb', line 54

def type
  @type
end