Class: Vizier::Link
- Includes:
- Support
- Defined in:
- lib/support/vizier.rb
Constant Summary
Constants included from Support
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
- #extract_name(o) ⇒ Object
-
#initialize(from, to, attrs = {}) ⇒ Link
constructor
A new instance of Link.
- #to_str ⇒ Object
Methods included from Support
#attributes, #attributes=, included, #legal?, #quote, #sanitize
Methods inherited from Base
Constructor Details
#initialize(from, to, attrs = {}) ⇒ Link
Returns a new instance of Link.
103 104 105 106 107 |
# File 'lib/support/vizier.rb', line 103 def initialize( from, to, attrs={} ) self.attributes = attrs @from = extract_name( from ) @to = extract_name( to ) end |