Module: Struct::Initializer

Defined in:
lib/struct/initializer/version.rb,
lib/struct/initializer.rb

Defined Under Namespace

Classes: Definition

Constant Summary collapse

VERSION =
"0.2.0"

Instance Method Summary collapse

Instance Method Details

#struct(*names, keyword_init: false) ⇒ Object



2
3
4
5
# File 'lib/struct/initializer.rb', line 2

def struct(*names, keyword_init: false)
  include Definition.new(names, keyword_init: keyword_init)
  names
end