Class: RubyArguments::NullArguments

Inherits:
RubyArguments show all
Defined in:
lib/ruby_arguments.rb

Overview

Since:

  • 1.0.0

Constant Summary

Constants inherited from RubyArguments

VERSION

Instance Attribute Summary

Attributes inherited from RubyArguments

#args, #block, #kwargs

Instance Method Summary collapse

Methods inherited from RubyArguments

#==, #[], #any?, #blank?, #deconstruct, #deconstruct_keys, #empty?, #eql?, #hash, #none?, null_arguments, #present?

Constructor Details

#initializevoid

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0



56
57
58
59
60
# File 'lib/ruby_arguments.rb', line 56

def initialize
  @args = []
  @kwargs = {}
  @block = nil
end

Instance Method Details

#null_arguments?Boolean

Returns:

  • (Boolean)

Since:

  • 1.0.0



67
68
69
# File 'lib/ruby_arguments.rb', line 67

def null_arguments?
  true
end