Module: PageByPage::Common
Instance Method Summary collapse
- #header(hash) ⇒ Object
- #initialize(opt = {}, &block) ⇒ Object
- #interval(second) ⇒ Object
- #no_progress(*arg) ⇒ Object
- #selector(sl) ⇒ Object
- #to(n) ⇒ Object
Instance Method Details
#header(hash) ⇒ Object
20 21 22 |
# File 'lib/page_by_page/common.rb', line 20 def header hash @header = hash end |
#initialize(opt = {}, &block) ⇒ Object
6 7 8 9 10 |
# File 'lib/page_by_page/common.rb', line 6 def initialize(opt = {}, &block) @progress = {} opt.each{ |name, value| send name, value } instance_eval &block if block end |
#interval(second) ⇒ Object
24 25 26 |
# File 'lib/page_by_page/common.rb', line 24 def interval second @interval = second end |
#no_progress(*arg) ⇒ Object
28 29 30 |
# File 'lib/page_by_page/common.rb', line 28 def no_progress *arg @progress = nil end |
#selector(sl) ⇒ Object
16 17 18 |
# File 'lib/page_by_page/common.rb', line 16 def selector sl @selector = sl end |
#to(n) ⇒ Object
12 13 14 |
# File 'lib/page_by_page/common.rb', line 12 def to n @to = n end |