Class: VarArgs

Inherits:
Object
  • Object
show all
Defined in:
lib/var_args.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.[](type) ⇒ Object



7
8
9
# File 'lib/var_args.rb', line 7

def self.[] type
  self.new(type)
end

Instance Method Details

#is_type_of?(obj) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/var_args.rb', line 3

def is_type_of? obj
  obj.kind_of? @type
end

#to_sObject



11
12
13
# File 'lib/var_args.rb', line 11

def to_s
  "VarArgs[#{@type}]"
end