Class: Travis::Yaml::Serializer::Ruby

Inherits:
Generic
  • Object
show all
Defined in:
lib/travis/yaml/serializer/ruby.rb

Direct Known Subclasses

Legacy, Yaml

Instance Attribute Summary

Attributes inherited from Generic

#options

Instance Method Summary collapse

Methods inherited from Generic

#initialize, serialize, #serialize, #serialize_binary, #serialize_bool, #serialize_decrypted, #serialize_encrypted, #serialize_float, #serialize_key, #serialize_regexp, #serialize_root, #serialize_scalar, #serialize_secure, #serialize_sequence, #serialize_str, #serialize_time, #symbol_keys?

Constructor Details

This class inherits a constructor from Travis::Yaml::Serializer::Generic

Instance Method Details

#serialize_mapping(node) ⇒ Object



8
9
10
# File 'lib/travis/yaml/serializer/ruby.rb', line 8

def serialize_mapping(node)
  Hash[super]
end

#serialize_value(value) ⇒ Object



4
5
6
# File 'lib/travis/yaml/serializer/ruby.rb', line 4

def serialize_value(value)
  value
end