Module: Avro::Builder::DslOptions
- Included in:
- DSL, Field, Types::Type
- Defined in:
- lib/avro/builder/dsl_options.rb
Overview
This module provides methods for defining options that can be set via the DSL on various objects.
These attributes can only be set as options via the private #attribute= methods, and not as methods in DSL block.
When a DSL option is defined, the class also keeps track of the option names.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
13 14 15 |
# File 'lib/avro/builder/dsl_options.rb', line 13 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#dsl_option?(name) ⇒ Boolean
17 18 19 |
# File 'lib/avro/builder/dsl_options.rb', line 17 def dsl_option?(name) self.class.dsl_option_names.include?(name.to_sym) end |