Top Level Namespace

Defined Under Namespace

Modules: Enumerable, Kernel, Q, RKit, S Classes: A, Array, B, BasicObject, C, CollectionDelegator, D, DatabaseSchemaError, Dependency, DslDefinitionError, DslStandardError, E, F, G, Grid, GridCol, H, Hash, I, J, K, L, LoadPath, M, Method, Module, N, NoLambdaError, O, Object, P, Proc, R, SafeStruct, SimpleDelegator, String, StrongStruct, Symbol, T, U, UnboundMethod, V, W, X, Y, Yank, Z, Z2

Constant Summary collapse

NothingClass =
Class.new do
  include Singleton

  def thing?
    false
  end

  def nothing?
    true
  end

  def method_missing *args
    self
  end
end
Nothing =
NothingClass.instance

Instance Method Summary collapse

Instance Method Details

#Nothing(value) ⇒ Object



20
21
22
# File 'lib/r_kit/utility/main_extend.rb', line 20

def Nothing(value)
  value || Nothing
end