Class: Float

Inherits:
Object
  • Object
show all
Defined in:
lib/glib-float.rb

Instance Method Summary collapse

Instance Method Details

#index?(array) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
5
6
7
8
# File 'lib/glib-float.rb', line 2

def index?(array)
  results = Array.new
  for i in 0...array.length
    if array[i] == self then results.push(i) end
  end
  return results
end