antifuchs / gmail-britta

Generate complex gmail filters via a neat little ruby DSL
MIT License
758 stars 33 forks source link

replace string with methods in "#has" #30

Open FranklinYu opened 5 years ago

FranklinYu commented 5 years ago

This is a feature request. Currently #has is like:

has %w{from:abc@example.com cc:def@example.com}

This from time to time confuses syntax highlight, so I typically writes

has ['from:abc@example.com', 'cc:def@example.com']

I would love something like

has [
  from 'abc@example.com'
  cc 'def@example.com'
]