Module: Rulp::Initializers
- Included in:
- LV
- Defined in:
- lib/rulp/rulp_initializers.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
9 10 11 |
# File 'lib/rulp/rulp_initializers.rb', line 9 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#initialize(name) ⇒ Object
3 4 5 6 7 |
# File 'lib/rulp/rulp_initializers.rb', line 3 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 |
#to_s ⇒ Object
23 24 25 |
# File 'lib/rulp/rulp_initializers.rb', line 23 def to_s "#{self.name}" end |