Class: CommonMob::ResourceLocator

Inherits:
Object
  • Object
show all
Defined in:
lib/common_mob/resource_locator.rb

Instance Method Summary collapse

Instance Method Details

#resource(target, name) ⇒ Object Also known as: []



3
4
5
6
# File 'lib/common_mob/resource_locator.rb', line 3

def resource(target,name)
  path = target.act.definition_file.to_s.sub(/\.([^\.]+)$/,'')
  (path.pathname + name.to_s)
end