Class: Psych::Visitors::ToRuby

Inherits:
Object
  • Object
show all
Defined in:
lib/smck/tagged_value.rb

Overview

cut out original Psych::Visitors::ToRuby#accept to provide TaggedValue TODO(pxeger): is it possible to put this in a refinement? (probably not)

Instance Method Summary collapse

Instance Method Details

#accept(target) ⇒ Object



21
22
23
24
25
# File 'lib/smck/tagged_value.rb', line 21

def accept(target)
  result = super
  result = TaggedValue.new target.tag, result if target.tag
  result
end