Class: SimpleRewriter::ClassResolver
- Inherits:
-
BaseService
- Object
- BaseService
- SimpleRewriter::ClassResolver
- Defined in:
- lib/simple_rewriter/class_resolver.rb
Constant Summary collapse
- NotSupportedAttribute =
Class.new(StandardError)
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(value, guess, options = nil) ⇒ ClassResolver
constructor
A new instance of ClassResolver.
Methods inherited from BaseService
Constructor Details
#initialize(value, guess, options = nil) ⇒ ClassResolver
Returns a new instance of ClassResolver.
5 6 7 8 9 10 |
# File 'lib/simple_rewriter/class_resolver.rb', line 5 def initialize(value, guess, = nil) @value = value @guess = guess @attr_klass = value.class @options = end |
Instance Method Details
#call ⇒ Object
12 13 14 |
# File 'lib/simple_rewriter/class_resolver.rb', line 12 def call desired_class end |