Class: Ree::ObjectLink

Inherits:
Object show all
Defined in:
lib/ree/core/object_link.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object_name, package_name, as, target) ⇒ ObjectLink

Returns a new instance of ObjectLink.

Parameters:

  • object_name (Symbol)

    Linked object name

  • package_name (Symbol)

    Linked object package

  • as (Symbol)

    Linked object alias name

  • Nilor (Symbol)

    target Linked object target



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

#asObject (readonly)

Returns the value of attribute as.



4
5
6
# File 'lib/ree/core/object_link.rb', line 4

def as
  @as
end

#constantsObject (readonly)

Returns the value of attribute constants.



4
5
6
# File 'lib/ree/core/object_link.rb', line 4

def constants
  @constants
end

#object_nameObject (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_nameObject (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

#targetObject (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]

Parameters:

  • (ArrayOf[String])

Returns:

  • (ArrayOf[String])


20
21
22
# File 'lib/ree/core/object_link.rb', line 20

def set_constants(const_list)
  @constants = const_list
end