Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/bases/monkeypatches/array.rb
Overview
Some monkeypatches to the Array class.
Instance Method Summary collapse
-
#in_base(base) ⇒ Number
Return a
Bases::Numberinstance with the current array as the value and the source base set tobase. -
#in_binary ⇒ Number
Return a
Bases::Numberinstance with the current array as the value and the source base set to the binary base. -
#in_hex ⇒ Number
Return a
Bases::Numberinstance with the current array as the value and the source base set to the hexadecimale base.
Instance Method Details
#in_base(base) ⇒ Number
Return a Bases::Number instance with the current array as the
value and the source base set to base.
10 11 12 |
# File 'lib/bases/monkeypatches/array.rb', line 10 def in_base(base) Bases.val(self).in_base(base) end |