Class: Bio::MAF::Member
- Inherits:
-
Object
- Object
- Bio::MAF::Member
- Defined in:
- lib/bio/maf/struct.rb
Instance Attribute Summary collapse
- #fmt ⇒ Object readonly
- #name ⇒ Object readonly
- #offset ⇒ Object readonly
- #size ⇒ Object readonly
- #type ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(offset, name, type) ⇒ Member
constructor
A new instance of Member.
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
#fmt ⇒ Object (readonly)
54 55 56 |
# File 'lib/bio/maf/struct.rb', line 54 def fmt @fmt end |
#name ⇒ Object (readonly)
54 55 56 |
# File 'lib/bio/maf/struct.rb', line 54 def name @name end |
#offset ⇒ Object (readonly)
54 55 56 |
# File 'lib/bio/maf/struct.rb', line 54 def offset @offset end |
#size ⇒ Object (readonly)
54 55 56 |
# File 'lib/bio/maf/struct.rb', line 54 def size @size end |
#type ⇒ Object (readonly)
54 55 56 |
# File 'lib/bio/maf/struct.rb', line 54 def type @type end |