Module: Avro::Builder::Aliasable
- Included in:
- Field, Types::NamedType
- Defined in:
- lib/avro/builder/aliasable.rb
Overview
This is a shared concern for objects that support aliases via the DSL.
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/avro/builder/aliasable.rb', line 8 def self.included(base) base.dsl_attribute(:aliases) do |*names| if !names.empty? @aliases = names.flatten else @aliases end end end |