lib/ruic/application.rb in RUIC-0.4.2 vs lib/ruic/application.rb in RUIC-0.4.3
- old
+ new
@@ -162,10 +162,14 @@
# layer2 = app/"main:Scene.Layer"
# layer3 = app.main.at "Scene.Layer"
# layer4 = app.main/"Scene.Layer"
#
# assert layer1==layer2 && layer2==layer3 && layer3==layer4
- # @return [UIC::MetaData::Root] The found asset, or `nil` if it cannot be found.
+ #
+ # @return [MetaData::AssetBase] The found asset, or `nil` if it cannot be found.
+ #
+ # @see Presentation#at
+ # @see MetaData::AssetBase#at
def at(path)
parts = path.split(':')
preso = parts.length==2 ? self["##{parts.first}"] : main_presentation
raise "Cannot find presentation for #{id}" unless preso
preso.at(parts.last)