Class: Lumb::StructItem

Inherits:
Object
  • Object
show all
Defined in:
lib/lumb.rb

Instance Method Summary collapse

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_sObject



73
74
75
# File 'lib/lumb.rb', line 73

def to_s
  "#{@field}=#{@type}#{@ws}"
end