Class: VarArgs
- Inherits:
-
Object
- Object
- VarArgs
- 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
4 5 6 |
# File 'lib/safe-me/var_args.rb', line 4 def is_type_of? obj obj.kind_of? @type end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/safe-me/var_args.rb', line 12 def to_s "VarArgs[#{@type}]" end |