Class: Playbook::PbMultipleUsersStacked::MultipleUsersStacked
- Inherits:
-
Object
- Object
- Playbook::PbMultipleUsersStacked::MultipleUsersStacked
show all
- Includes:
- Playbook::Props
- Defined in:
- app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.rb
Instance Method Summary
collapse
#dark_props, #generate_classname, #generate_classname_without_spacing, #initialize, #prop, #spacing_options, #spacing_props, #spacing_values
Instance Method Details
#classname ⇒ Object
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_count ⇒ Object
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_two ⇒ Object
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_one ⇒ Object
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
|