Class: SimpleDelegator

Inherits:
Object show all
Defined in:
lib/rdl/wrap.rb

Instance Method Summary collapse

Instance Method Details

#==(x) ⇒ Object



865
866
867
# File 'lib/rdl/wrap.rb', line 865

def ==(x)
  __getobj__ == x
end

#===(x) ⇒ Object



861
862
863
# File 'lib/rdl/wrap.rb', line 861

def ===(x)
  __getobj__ === x
end

#classObject



869
870
871
# File 'lib/rdl/wrap.rb', line 869

def class
   __getobj__.class
end

#instance_of?(c) ⇒ Boolean

Returns:

  • (Boolean)


853
854
855
# File 'lib/rdl/wrap.rb', line 853

def instance_of?(c)
  __getobj__.instance_of?(c)
end

#is_a?(c) ⇒ Boolean

pass methods through to wrapped object necessary when type casts are inside type-level code

Returns:

  • (Boolean)


849
850
851
# File 'lib/rdl/wrap.rb', line 849

def is_a?(c)
  __getobj__.is_a?(c)
end

#kind_of?(c) ⇒ Boolean

Returns:

  • (Boolean)


857
858
859
# File 'lib/rdl/wrap.rb', line 857

def kind_of?(c)
  __getobj__.kind_of?(c)
end

#nil?Boolean

Returns:

  • (Boolean)


873
874
875
# File 'lib/rdl/wrap.rb', line 873

def nil?
   __getobj__.nil?
end