Class: Lilac::Cli

Inherits:
Object
  • Object
show all
Defined in:
lib/lilac/cli.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}, text = nil) ⇒ Cli

Returns a new instance of Cli.



5
6
7
# File 'lib/lilac/cli.rb', line 5

def initialize(opts={}, text=nil)
  @list = Lilac::List.new(text)
end

Instance Method Details

#runObject



9
10
11
# File 'lib/lilac/cli.rb', line 9

def run
  puts @list.to_html
end