Class: PostEmAll::Post

Inherits:
Object
  • Object
show all
Defined in:
lib/post-em-all.rb

Class Method Summary collapse

Class Method Details

.post?Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/post-em-all.rb', line 56

def self.post?
  @condition
end

.when(&block) ⇒ Object



53
54
55
# File 'lib/post-em-all.rb', line 53

def self.when(&block)
  @condition = block
end