Merge pull request #128 from houdiniproject/get_data_obj
Remove unused GetData.obj method
This commit is contained in:
commit
e6b62b8309
1 changed files with 0 additions and 17 deletions
|
@ -29,22 +29,5 @@ module GetData
|
||||||
end
|
end
|
||||||
return h
|
return h
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.obj(obj, *methods)
|
|
||||||
methods.each do |m|
|
|
||||||
if m.is_a?(Array)
|
|
||||||
params = m[1..-1]
|
|
||||||
m = m[0]
|
|
||||||
end
|
|
||||||
|
|
||||||
if obj != nil && obj.respond_to?(m)
|
|
||||||
obj = obj.send(m, *params)
|
|
||||||
else
|
|
||||||
return nil
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return obj
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue