Module: Travis::Yaml::Serializer
- Defined in:
- lib/travis/yaml/serializer.rb,
lib/travis/yaml/serializer/json.rb,
lib/travis/yaml/serializer/ruby.rb,
lib/travis/yaml/serializer/yaml.rb,
lib/travis/yaml/serializer/legacy.rb,
lib/travis/yaml/serializer/generic.rb
Defined Under Namespace
Classes: Generic, Json, Legacy, Ruby, Yaml
Class Method Summary collapse
Class Method Details
.[](key) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/travis/yaml/serializer.rb', line 10 def self.[](key) return key if key.respond_to? :serialize name = constants.detect { |c| c.downcase == key } raise ArgumentError, "unknown serializer %p" % key unless name const_get(name) end |