class Mexico::FileSystem::LayerLink
A link from an item to a layer.
Attributes
document[RW]
item[RW]
Public Class Methods
new(args={})
click to toggle source
# File lib/mexico/file_system/layer_link.rb, line 48 def initialize(args={}) args.each do |k,v| if self.respond_to?("#{k}=") send("#{k}=", v) end end end
Public Instance Methods
after_parse()
click to toggle source
This method attempts to link objects from other locations of the XML/object tree into position inside this object, by following the xml ids given in the appropriate fields of this class.
# File lib/mexico/file_system/layer_link.rb, line 73 def after_parse end
identifier=(new_id)
click to toggle source
# File lib/mexico/file_system/layer_link.rb, line 28 def identifier=(new_id) @identifier = Mexico::Util::to_xml_id(new_id) end
target_object()
click to toggle source
returns the target object, in this case, a Layer. @return (Mexico::FileSystem::Layer
) the scale this interval link points to.
# File lib/mexico/file_system/layer_link.rb, line 58 def target_object @target_object end
Also aliased as: layer
target_object=(new_target)
click to toggle source
Sets a new target object (and updates the corresponding identifier) @param (Mexico::FileSystem::Layer
) new_target The new target object to set @return (void)
# File lib/mexico/file_system/layer_link.rb, line 65 def target_object=(new_target) @target_object=new_target @target=@target_object.identifier end