lib/rulp/lv.rb in rulp-0.0.44 vs lib/rulp/lv.rb in rulp-0.0.45

- old
+ new

@@ -19,12 +19,16 @@ def meth "#{self.name}_#{self.suffix}" end + def self.suffix + ENV['RULP_LV_SUFFIX'] || "f" + end + def suffix - "f" + self.class.suffix end def self.definition(name, *args) identifier = "#{name}#{args.join("_")}" defined = LV::names_table["#{identifier}"] @@ -72,14 +76,15 @@ alias_method :selected?, :value? end class BV < LV; - def suffix - "b" + def self.suffix + ENV['RULP_BV_SUFFIX'] || "b" end end + class IV < LV; - def suffix - "i" + def self.suffix + ENV['RULP_IV_SUFFIX'] || "i" end -end \ No newline at end of file +end