Class: Bookingit::Views::HeaderView
- Defined in:
- lib/bookingit/views/header_view.rb
Instance Attribute Summary collapse
-
#stylesheets ⇒ Object
readonly
Returns the value of attribute stylesheets.
-
#theme ⇒ Object
readonly
Returns the value of attribute theme.
Attributes inherited from BaseView
Instance Method Summary collapse
-
#initialize(stylesheets, theme, config) ⇒ HeaderView
constructor
A new instance of HeaderView.
Constructor Details
#initialize(stylesheets, theme, config) ⇒ HeaderView
Returns a new instance of HeaderView.
8 9 10 11 12 13 14 |
# File 'lib/bookingit/views/header_view.rb', line 8 def initialize(stylesheets, theme, config) @stylesheets = stylesheets.map { |stylesheet| OpenStruct.new(path: stylesheet, media: "all") } @theme = theme super(config) end |
Instance Attribute Details
#stylesheets ⇒ Object (readonly)
Returns the value of attribute stylesheets.
6 7 8 |
# File 'lib/bookingit/views/header_view.rb', line 6 def stylesheets @stylesheets end |
#theme ⇒ Object (readonly)
Returns the value of attribute theme.
6 7 8 |
# File 'lib/bookingit/views/header_view.rb', line 6 def theme @theme end |