Module: Cabbage

Defined in:
lib/cabbage.rb,
lib/cabbage/email/email.rb,
lib/cabbage/email/parser.rb,
lib/cabbage/dotfile/parser.rb,
lib/cabbage/email/mime_part.rb

Defined Under Namespace

Modules: EmailParser Classes: DotFile, Email, MimePart

Class Method Summary collapse

Class Method Details

.dotfile(*args, &block) ⇒ Object

graphviz DOT format files



9
10
11
12
# File 'lib/cabbage.rb', line 9

def self.dotfile(*args, &block)
 require_relative "cabbage/dotfile/parser" 
  DotFile.new(args[0], &block) # passes the the first argument on
end

.email(*args, &block) ⇒ Object

raw emails



15
16
17
18
19
20
# File 'lib/cabbage.rb', line 15

def self.email(*args, &block)
 require_relative "cabbage/email/email"
  require_relative "cabbage/email/parser"
  require_relative "cabbage/string_extras"
  Email.new(args[0], &block)
end