Sha256: 2d0fa37fcf90340246ddda3326479c70f40c52761b30e2036d5e0b67c222e7a5
Contents?: true
Size: 547 Bytes
Versions: 1
Compression:
Stored size: 547 Bytes
Contents
module Rulp module Initializers def initialize(name) raise StandardError.new("Variable with the name #{name} of a different type (#{LV::names_table[name].class}) already exists") if LV::names_table["#{name}"] LV::names_table["#{name}"] = self @name = name end def self.included(base) base.extend(ClassMethods) end module ClassMethods def names_table @@names ||= {} end def clear @@names = {} end end def to_s "#{self.name}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rulp-0.0.5 | lib/rulp/rulp_initializers.rb |