Class: VarArgs

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.ofType(type) ⇒ Object



8
9
10
# File 'lib/safe-me/var_args.rb', line 8

def self.ofType type
  self.new(type)
end

Instance Method Details

#is_type_of?(obj) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/safe-me/var_args.rb', line 4

def is_type_of? obj
  obj.kind_of? @type
end

#to_sObject



12
13
14
# File 'lib/safe-me/var_args.rb', line 12

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