Class: Lumb::StructItem
- Inherits:
-
Object
- Object
- Lumb::StructItem
- Defined in:
- lib/lumb.rb
Instance Method Summary collapse
-
#initialize(field, type, ws) ⇒ StructItem
constructor
A new instance of StructItem.
- #to_s ⇒ Object
Constructor Details
#initialize(field, type, ws) ⇒ StructItem
Returns a new instance of StructItem.
69 70 71 |
# File 'lib/lumb.rb', line 69 def initialize(field, type, ws) @field, @type, @ws = field, type, ws end |
Instance Method Details
#to_s ⇒ Object
73 74 75 |
# File 'lib/lumb.rb', line 73 def to_s "#{@field}=#{@type}#{@ws}" end |