Class: Playbook::PbMultipleUsersStacked::MultipleUsersStacked

Inherits:
Object
  • Object
show all
Includes:
Playbook::Props
Defined in:
app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.rb

Instance Method Summary collapse

Methods included from Playbook::Props

#dark_props, #generate_classname, #generate_classname_without_spacing, #initialize, #prop, #spacing_options, #spacing_props, #spacing_values

Instance Method Details

#classnameObject



24
25
26
# File 'app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.rb', line 24

def classname
  generate_classname("pb_multiple_users_stacked_kit", single_class)
end

#display_countObject



20
21
22
# File 'app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.rb', line 20

def display_count
  more_than_two ? 1 : users.count
end

#more_than_twoObject



12
13
14
# File 'app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.rb', line 12

def more_than_two
  users.count > 2
end

#only_oneObject



16
17
18
# File 'app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.rb', line 16

def only_one
  users.count == 1
end