Class: Ree::ObjectLink
Instance Attribute Summary collapse
-
#as ⇒ Object
readonly
Returns the value of attribute as.
-
#constants ⇒ Object
readonly
Returns the value of attribute constants.
-
#object_name ⇒ Object
readonly
Returns the value of attribute object_name.
-
#package_name ⇒ Object
readonly
Returns the value of attribute package_name.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(object_name, package_name, as, target) ⇒ ObjectLink
constructor
A new instance of ObjectLink.
- #set_constants(const_list) ⇒ ArrayOf[String]
Constructor Details
#initialize(object_name, package_name, as, target) ⇒ ObjectLink
Returns a new instance of ObjectLink.
10 11 12 13 14 15 16 |
# File 'lib/ree/core/object_link.rb', line 10 def initialize(object_name, package_name, as, target) @object_name = object_name @package_name = package_name @as = as @target = target @constants = [] end |
Instance Attribute Details
#as ⇒ Object (readonly)
Returns the value of attribute as.
4 5 6 |
# File 'lib/ree/core/object_link.rb', line 4 def as @as end |
#constants ⇒ Object (readonly)
Returns the value of attribute constants.
4 5 6 |
# File 'lib/ree/core/object_link.rb', line 4 def constants @constants end |
#object_name ⇒ Object (readonly)
Returns the value of attribute object_name.
4 5 6 |
# File 'lib/ree/core/object_link.rb', line 4 def object_name @object_name end |
#package_name ⇒ Object (readonly)
Returns the value of attribute package_name.
4 5 6 |
# File 'lib/ree/core/object_link.rb', line 4 def package_name @package_name end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
4 5 6 |
# File 'lib/ree/core/object_link.rb', line 4 def target @target end |
Instance Method Details
#set_constants(const_list) ⇒ ArrayOf[String]
20 21 22 |
# File 'lib/ree/core/object_link.rb', line 20 def set_constants(const_list) @constants = const_list end |