Class: SimpleRewriter::ClassResolver

Inherits:
BaseService show all
Defined in:
lib/simple_rewriter/class_resolver.rb

Constant Summary collapse

NotSupportedAttribute =
Class.new(StandardError)

Instance Method Summary collapse

Methods inherited from BaseService

call

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, options = nil)
  @value = value
  @guess = guess
  @attr_klass = value.class
  @options = options
end

Instance Method Details

#callObject



12
13
14
# File 'lib/simple_rewriter/class_resolver.rb', line 12

def call
  desired_class
end