Class: Tobacco::Roller

Inherits:
Object
  • Object
show all
Defined in:
lib/tobacco/roller.rb

Instance Method Summary collapse

Constructor Details

#initialize(smoker) ⇒ Roller

Returns a new instance of Roller.



4
5
6
# File 'lib/tobacco/roller.rb', line 4

def initialize(smoker)
  @smoker = smoker
end

Instance Method Details

#content_urlObject



12
13
14
15
16
# File 'lib/tobacco/roller.rb', line 12

def content_url
  separator = url_path =~ /^\// ? '' : '/'

  @content_url ||= "#{host}#{separator}#{url_path}"
end

#output_filepathObject



8
9
10
# File 'lib/tobacco/roller.rb', line 8

def output_filepath
  @output_filepath ||= File.join(base_path, *filepath_options)
end