Class: Ship::Format
- Inherits:
-
Object
- Object
- Ship::Format
- Defined in:
- lib/format.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, code) ⇒ Format
constructor
A new instance of Format.
Constructor Details
#initialize(name, code) ⇒ Format
Returns a new instance of Format.
4 5 6 7 |
# File 'lib/format.rb', line 4 def initialize(name,code) @name = name @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/format.rb', line 3 def code @code end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/format.rb', line 3 def name @name end |