Project

mindwords

0.0
No release in over a year
Helps get what's in your mind into a structure using words and hashtags.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.4, >= 1.4.1
 Project Readme

Introducing the mindwords gem

require 'mindwords'

s = "
milk #fridge
cheese #fridge #kitchen
cooker #kitchen
fridge #kitchen
paint #garage
laptop #computers #acer
kitchen #rooms
rooms #house
raspberrypi #computers
car service #car
car insurance #car
car mot #car
bitcoin #cryptocurrency #finances
cryptocurrency #finances
binance #accounts #cryptocurrency #finances #exchange
accounts #cryptocurrency
"

mw = MindWords.new(s)
puts mw.to_outline

Output:

garage
  paint
computers
  laptop
  raspberrypi
house
  rooms
    kitchen
      cooker
      fridge
        milk
        cheese
car
  car service
  car insurance
  car mot
finances
  cryptocurrency
    bitcoin
    accounts
      binance