Class: Prmd::ReferenceLocalizer Private
- Inherits:
-
Object
- Object
- Prmd::ReferenceLocalizer
- Defined in:
- lib/prmd/core/reference_localizer.rb
Overview
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.
Schema references localizer
Defined Under Namespace
Class Method Summary collapse
- .build(object) ⇒ ReferenceLocalizer private
- .localize(object) ⇒ Object private
Instance Method Summary collapse
-
#initialize(object) ⇒ ReferenceLocalizer
constructor
private
A new instance of ReferenceLocalizer.
- #localize ⇒ Object private
Constructor Details
#initialize(object) ⇒ ReferenceLocalizer
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 ReferenceLocalizer.
9 10 11 |
# File 'lib/prmd/core/reference_localizer.rb', line 9 def initialize(object) @object = object end |
Class Method Details
.build(object) ⇒ ReferenceLocalizer
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.
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/prmd/core/reference_localizer.rb', line 15 def self.build(object) case object when Array ForArray when Hash ForHash else self end.new(object) end |
.localize(object) ⇒ 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.
28 29 30 |
# File 'lib/prmd/core/reference_localizer.rb', line 28 def self.localize(object) build(object).localize end |
Instance Method Details
#localize ⇒ 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.
33 34 35 |
# File 'lib/prmd/core/reference_localizer.rb', line 33 def localize object end |