Module: Card::Set::Abstract::FollowOption::ClassMethods

Defined in:
platypus/tmp/set/gem-defaults/mod028-follow/abstract/follow_option.rb

Overview

follow option methods on the Card class FIXME: there’s not a great reason to have these on the Card class

Instance Method Summary collapse

Instance Method Details

#follow_opts(args) ⇒ Object

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



27
28
29
# File 'platypus/tmp/set/gem-defaults/mod028-follow/abstract/follow_option.rb', line 27

def follow_opts args
  add_option args, :main
end

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



31
32
33
# File 'platypus/tmp/set/gem-defaults/mod028-follow/abstract/follow_option.rb', line 31

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

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



35
36
37
# File 'platypus/tmp/set/gem-defaults/mod028-follow/abstract/follow_option.rb', line 35

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)



21
22
23
# File 'platypus/tmp/set/gem-defaults/mod028-follow/abstract/follow_option.rb', line 21

def restrictive_follow_opts args
  add_option args, :restrictive
end