module Simpleurlcount
Constants
- VERSION
Public Class Methods
count_daily_url(url= '', date)
click to toggle source
# File lib/simpleurlcount.rb, line 25 def self.count_daily_url(url= '', date) # get list of urls where given date exists in list # what is the size of the result end
full_title(page_title = '')
click to toggle source
# File lib/simpleurlcount.rb, line 8 def self.full_title(page_title = '') base_title = "Ruby on rails tutorial sample app" if page_title.empty? base_title else page_title + " | " + base_title end end
hi()
click to toggle source
# File lib/simpleurlcount.rb, line 4 def self.hi puts "Hello world!" end
string_message(str = '')
click to toggle source
# File lib/simpleurlcount.rb, line 17 def self.string_message(str = '') if str.empty? "It is empty string" else "It isnt empty" end end