Module: Card::FollowOption::ClassMethods

Defined in:
mod/05_email/lib/card/follow_option.rb

Instance Method Summary collapse

Instance Method Details

#follow_opts(args) ⇒ Object

args: :position => <Fixnum> (starting at 1, default: add to end)



49
50
51
# File 'mod/05_email/lib/card/follow_option.rb', line 49

def follow_opts args
  add_option args, :main
end

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



53
54
55
# File 'mod/05_email/lib/card/follow_option.rb', line 53

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

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



57
58
59
# File 'mod/05_email/lib/card/follow_option.rb', line 57

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

#restrictive_follow_opts(args) ⇒ Object

args: :position => <Fixnum> (starting at 1, default: add to end)



43
44
45
# File 'mod/05_email/lib/card/follow_option.rb', line 43

def restrictive_follow_opts args
  add_option args, :restrictive
end