Method: FinModeling::AssetsCalculation#has_cash_item

Defined in:
lib/finmodeling/assets_calculation.rb

#has_cash_itemObject



38
39
40
41
42
# File 'lib/finmodeling/assets_calculation.rb', line 38

def has_cash_item 
  @has_cash_item = leaf_items.any? do |leaf|
    leaf.name.downcase.matches_any_regex?([/cash/])
  end
end