Class: ERBLint::Linters::TwoColumnLayoutMigrationCounter::Container
- Inherits:
-
Object
- Object
- ERBLint::Linters::TwoColumnLayoutMigrationCounter::Container
- Defined in:
- lib/primer/view_components/linters/two_column_layout_migration_counter.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#columns ⇒ Object
readonly
Returns the value of attribute columns.
Instance Method Summary collapse
-
#initialize(columns) ⇒ Container
constructor
A new instance of Container.
- #main ⇒ Object
- #sidebar ⇒ Object
Constructor Details
#initialize(columns) ⇒ Container
Returns a new instance of Container.
56 57 58 |
# File 'lib/primer/view_components/linters/two_column_layout_migration_counter.rb', line 56 def initialize(columns) @columns = columns end |
Instance Attribute Details
#columns ⇒ Object (readonly)
Returns the value of attribute columns.
54 55 56 |
# File 'lib/primer/view_components/linters/two_column_layout_migration_counter.rb', line 54 def columns @columns end |
Instance Method Details
#main ⇒ Object
64 65 66 |
# File 'lib/primer/view_components/linters/two_column_layout_migration_counter.rb', line 64 def main sorted_columns.last end |
#sidebar ⇒ Object
60 61 62 |
# File 'lib/primer/view_components/linters/two_column_layout_migration_counter.rb', line 60 def sorted_columns.first end |