Sha256: 16502d3ff8c3299c906575f6341403650003d06a2730ae8570b9cdf88a1dfc2a

Contents?: true

Size: 219 Bytes

Versions: 1

Compression:

Stored size: 219 Bytes

Contents

self.instance_eval do
  def int(variable_name = nil)
    raise SyntaxError.new('Need to define name!') if variable_name.nil?
    self.instance_variable_set("@#{variable_name}".to_sym, IntVariable.new)
    nil
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
static_type-0.0.1 lib/static_type/import.rb