Method: Cog::Seed::Var#initialize

Defined in:
lib/cog/seed/var.rb

#initialize(type, name, opt = {}) ⇒ Var

Returns a new instance of Var.



19
20
21
22
23
24
# File 'lib/cog/seed/var.rb', line 19

def initialize(type, name, opt={})
  @type = type
  @name = name.to_s.to_ident
  @desc = opt[:desc]
  @scope = opt[:scope]
end