Class: Pakyow::Support::ObjectNamespace Private
- Inherits:
-
Object
- Object
- Pakyow::Support::ObjectNamespace
- Defined in:
- lib/pakyow/support/makeable/object_namespace.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #constant ⇒ Object private
-
#initialize(*namespaces) ⇒ ObjectNamespace
constructor
private
A new instance of ObjectNamespace.
- #parts ⇒ Object private
- #to_s ⇒ Object private
Constructor Details
#initialize(*namespaces) ⇒ ObjectNamespace
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ObjectNamespace.
9 10 11 |
# File 'lib/pakyow/support/makeable/object_namespace.rb', line 9 def initialize(*namespaces) @namespaces = namespaces.map(&:to_sym) end |
Instance Method Details
#constant ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 24 25 |
# File 'lib/pakyow/support/makeable/object_namespace.rb', line 21 def constant @namespaces.map { |namespace| Support.inflector.camelize(namespace) }.join("::") end |
#parts ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/pakyow/support/makeable/object_namespace.rb', line 13 def parts @namespaces end |
#to_s ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/pakyow/support/makeable/object_namespace.rb', line 17 def to_s @namespaces.join("/") end |