Class: Mexico::FileSystem::PointLink
- Inherits:
-
Object
- Object
- Mexico::FileSystem::PointLink
- Includes:
- Poseidon, ROXML
- Defined in:
- lib/mexico/file_system/point_link.rb
Overview
a link that targets an interval out of a scale object.
Instance Attribute Summary collapse
-
#document ⇒ Object
Returns the value of attribute document.
-
#item ⇒ Object
Returns the value of attribute item.
Instance Method Summary collapse
-
#after_parse ⇒ void
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.
-
#initialize(args = {}) ⇒ PointLink
constructor
A new instance of PointLink.
-
#target_object ⇒ Mexico::FileSystem::Scale
returns the target object, in this case, a Scale.
-
#target_object=(new_target) ⇒ void
Sets a new target object (and updates the corresponding identifier).
Constructor Details
#initialize(args = {}) ⇒ PointLink
Returns a new instance of PointLink.
49 50 51 52 53 54 55 |
# File 'lib/mexico/file_system/point_link.rb', line 49 def initialize(args={}) args.each do |k,v| if self.respond_to?("#{k}=") send("#{k}=", v) end end end |
Instance Attribute Details
#document ⇒ Object
Returns the value of attribute document.
38 39 40 |
# File 'lib/mexico/file_system/point_link.rb', line 38 def document @document end |
#item ⇒ Object
Returns the value of attribute item.
37 38 39 |
# File 'lib/mexico/file_system/point_link.rb', line 37 def item @item end |
Instance Method Details
#after_parse ⇒ void
This method returns an undefined value.
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.
75 76 77 |
# File 'lib/mexico/file_system/point_link.rb', line 75 def after_parse end |
#target_object ⇒ Mexico::FileSystem::Scale
returns the target object, in this case, a Scale.
59 60 61 |
# File 'lib/mexico/file_system/point_link.rb', line 59 def target_object @target_object end |
#target_object=(new_target) ⇒ void
This method returns an undefined value.
Sets a new target object (and updates the corresponding identifier)
66 67 68 69 |
# File 'lib/mexico/file_system/point_link.rb', line 66 def target_object=(new_target) @target_object=new_target @target=target_object.identifier end |