easier constructor

This commit is contained in:
Torsten Ruger 2016-03-07 11:32:09 +02:00
parent f51ed376c4
commit c9d25fcf81
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
module Soml
class Assignment < Statement
attr_accessor :name , :value
def initialize(n = nil , v = nil )
@name , @value = n , v
end
end
class FieldDef < Statement