Class: Hash
Overview
Instance Method Summary
collapse
Instance Method Details
#__index(key) ⇒ Object
74
75
76
|
# File 'lib/web/assertinclude.rb', line 74
def __index(key)
self[key]
end
|
#compare_includes?(haystack, prefix = []) ⇒ Boolean
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# File 'lib/web/assertinclude.rb', line 78
def compare_includes? haystack, prefix=[]
message = ""
self.each do |k,v|
fullname = prefix.clone.push k
fullname_str = fullname.join(".")
message += do_thing(haystack, k, v, fullname, fullname_str)
end
message
end
|