module Avro::Builder::DslOptions

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.

Public Class Methods

included(base) click to toggle source
# File lib/avro/builder/dsl_options.rb, line 15
def self.included(base)
  base.extend ClassMethods
end

Public Instance Methods

dsl_option?(name) click to toggle source
# File lib/avro/builder/dsl_options.rb, line 19
def dsl_option?(name)
  self.class.dsl_option_names.include?(name.to_sym)
end