Module: Card::FollowOption::ClassMethods

Defined in:
mod/email/lib/card/follow_option.rb

Instance Method Summary collapse

Instance Method Details

#follow_opts(args) ⇒ Object

args: position: (starting at 1, default: add to end)



48
49
50
# File 'mod/email/lib/card/follow_option.rb', line 48

def follow_opts args
  add_option args, :main
end

#follow_test(opts = {}, &block) ⇒ Object



52
53
54
# File 'mod/email/lib/card/follow_option.rb', line 52

def follow_test opts={}, &block
  Card::FollowOption.test[get_codename(opts)] = block
end

#follower_candidate_ids(opts = {}, &block) ⇒ Object



56
57
58
# File 'mod/email/lib/card/follow_option.rb', line 56

def follower_candidate_ids opts={}, &block
  Card::FollowOption.follower_candidate_ids[get_codename(opts)] = block
end

#restrictive_follow_opts(args) ⇒ Object

args: position: (starting at 1, default: add to end)



42
43
44
# File 'mod/email/lib/card/follow_option.rb', line 42

def restrictive_follow_opts args
  add_option args, :restrictive
end