module Ruborithms::Algorithms::LinearSearch
Public Class Methods
included(mod)
click to toggle source
# File lib/ruborithms/algorithms/linear_search.rb, line 5 def included(mod) mod.extend(ClassMethods) end
Public Instance Methods
linear_search(value)
click to toggle source
# File lib/ruborithms/algorithms/linear_search.rb, line 18 def linear_search(value) self.class.linear_search(self, value) end