Class: Tobacco::Roller
- Inherits:
-
Object
- Object
- Tobacco::Roller
- Defined in:
- lib/tobacco/roller.rb
Instance Method Summary collapse
- #content_url ⇒ Object
-
#initialize(smoker) ⇒ Roller
constructor
A new instance of Roller.
- #output_filepath ⇒ Object
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_url ⇒ Object
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_filepath ⇒ Object
8 9 10 |
# File 'lib/tobacco/roller.rb', line 8 def output_filepath @output_filepath ||= File.join(base_path, *) end |