Method: Representable::YAML::Binding#write

Defined in:
lib/representable/yaml/binding.rb

#write(map, fragment) ⇒ Object



11
12
13
14
# File 'lib/representable/yaml/binding.rb', line 11

def write(map, fragment)
  map.children << Psych::Nodes::Scalar.new(as)
  map.children << node_for(fragment)  # FIXME: should be serialize.
end