Module: Nullz

Defined in:
lib/null_object.rb,
lib/nullz/version.rb

Defined Under Namespace

Classes: NullObject

Constant Summary collapse

VERSION =
'0.8.1'.freeze

Class Method Summary collapse

Class Method Details

.on_null_object_createdObject

Returns the value of attribute on_null_object_created.



20
21
22
# File 'lib/null_object.rb', line 20

def on_null_object_created
  @on_null_object_created
end

.on_null_object_created=(value) ⇒ Object

Sets the attribute on_null_object_created

Parameters:

  • value

    the value to set the attribute on_null_object_created to.



20
21
22
# File 'lib/null_object.rb', line 20

def on_null_object_created=(value)
  @on_null_object_created = value
end

.use_null_objectObject

Returns the value of attribute use_null_object.



20
21
22
# File 'lib/null_object.rb', line 20

def use_null_object
  @use_null_object
end

.use_null_object=(value) ⇒ Object

Sets the attribute use_null_object

Parameters:

  • value

    the value to set the attribute use_null_object to.



20
21
22
# File 'lib/null_object.rb', line 20

def use_null_object=(value)
  @use_null_object = value
end