class Mexico::FileSystem::PointLink
a link that targets an interval out of a scale object.
Attributes
document[RW]
item[RW]
Public Class Methods
new(args={})
click to toggle source
# File lib/mexico/file_system/point_link.rb, line 53 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. @return (void)
# File lib/mexico/file_system/point_link.rb, line 79 def after_parse end
identifier=(new_id)
click to toggle source
# File lib/mexico/file_system/point_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 Scale. @return (Mexico::FileSystem::Scale
) the scale this interval link points to.
# File lib/mexico/file_system/point_link.rb, line 63 def target_object @target_object end
target_object=(new_target)
click to toggle source
Sets a new target object (and updates the corresponding identifier) @param (Mexico::FileSystem::Scale
) new_target The new target object to set @return (void)
# File lib/mexico/file_system/point_link.rb, line 70 def target_object=(new_target) @target_object=new_target @target=target_object.identifier end