Module: Naught

Defined in:
lib/naught.rb,
lib/naught/version.rb,
lib/naught/conversions.rb,
lib/naught/basic_object.rb,
lib/naught/null_class_builder.rb,
lib/naught/null_class_builder/command.rb,
lib/naught/null_class_builder/commands/mimic.rb,
lib/naught/null_class_builder/commands/pebble.rb,
lib/naught/null_class_builder/commands/singleton.rb,
lib/naught/null_class_builder/commands/traceable.rb,
lib/naught/null_class_builder/commands/impersonate.rb,
lib/naught/null_class_builder/commands/predicates_return.rb,
lib/naught/null_class_builder/commands/define_explicit_conversions.rb,
lib/naught/null_class_builder/commands/define_implicit_conversions.rb

Defined Under Namespace

Modules: Conversions, NullObjectTag Classes: BasicObject, NullClassBuilder

Constant Summary collapse

VERSION =
'1.1.0'

Class Method Summary collapse

Class Method Details

.build(&customization_block) ⇒ Object



6
7
8
9
10
# File 'lib/naught.rb', line 6

def self.build(&customization_block)
  builder = NullClassBuilder.new
  builder.customize(&customization_block)
  builder.generate_class
end