class RuleMap
Attributes
hash_map[RW]
var[RW]
Public Class Methods
new()
click to toggle source
# File lib/Rule/rule_map.rb, line 4 def initialize self.hash_map = {} self.var = 'a' end
Public Instance Methods
fetch(object)
click to toggle source
# File lib/Rule/rule_map.rb, line 9 def fetch(object) unless hash_map.key?(object) hash_map[object] = var.to_s self.var = var.next end hash_map[object] end