class RailsNewApp::PaginationScreen
Public Class Methods
default()
click to toggle source
# File lib/rails-new-app/screens/pagination_screen.rb, line 19 def self.default { option_number: 1, name: "None", key: "" } end
Public Instance Methods
after_valid()
click to toggle source
# File lib/rails-new-app/screens/pagination_screen.rb, line 15 def after_valid puts "Selected pagination gem is: #{option}\n" end
lowercase_keys()
click to toggle source
# File lib/rails-new-app/screens/pagination_screen.rb, line 11 def lowercase_keys ["", "pagy", "kaminari", "will_paginate"] end
options()
click to toggle source
# File lib/rails-new-app/screens/pagination_screen.rb, line 7 def options ["None", "Pagy", "Kaminari", "WillPaginate"] end
step_question()
click to toggle source
# File lib/rails-new-app/screens/pagination_screen.rb, line 3 def step_question "Type the option number of the Pagination gem to use:" end