module Getty
Constants
- FIELDS
Public Class Methods
configure() { |self| ... }
click to toggle source
# File lib/getty.rb, line 23 def configure yield self true end
filter(tips, term)
click to toggle source
# File lib/getty.rb, line 13 def filter tips, term tip = [] unless tips.nil? tips.items.each do |check_tip| tip << check_tip if check_tip.text.downcase.include? term.downcase end end Hashie::Mash.new({:count => tip.count, :items => tip }) end