Class: Head::Wing
Class Method Summary
collapse
Instance Method Summary
collapse
#initialize
Class Method Details
.mainmenu ⇒ Object
16
17
18
|
# File 'app/components/head/wing.rb', line 16
def self.mainmenu
new(id: :mainmenu)
end
|
Instance Method Details
#classes ⇒ Object
21
22
23
|
# File 'app/components/head/wing.rb', line 21
def classes
%W[c-head-wing c-head-wing--#{group} js-head-wing]
end
|
#group ⇒ Object
25
26
27
|
# File 'app/components/head/wing.rb', line 25
def group
left? ? :left : :right
end
|
#left? ⇒ Boolean
29
30
31
|
# File 'app/components/head/wing.rb', line 29
def left?
!right?
end
|
#right? ⇒ Boolean
33
34
35
|
# File 'app/components/head/wing.rb', line 33
def right?
@right
end
|