class Mexico::FileSystem::IntervalLink

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/interval_link.rb, line 59
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/interval_link.rb, line 84
def after_parse

end
identifier=(new_id) click to toggle source
# File lib/mexico/file_system/interval_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/interval_link.rb, line 69
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/interval_link.rb, line 76
def target_object=(new_target)
  @target_object=new_target
  @target=target_object.identifier
end