diff --git a/docs/app/components/themes/grid/repo_tabs.rb b/docs/app/components/themes/grid/repo_tabs.rb index 78a2b6235..c3a3da40c 100644 --- a/docs/app/components/themes/grid/repo_tabs.rb +++ b/docs/app/components/themes/grid/repo_tabs.rb @@ -4,7 +4,7 @@ module Components module Themes module Grid class RepoTabs < Components::Base - Repo = Struct.new(:github_url, :name, :stars, :version, keyword_init: true) + Repo = Struct.new(:github_url, :name, :stars, :version) def view_template Tabs(default_value: "overview", class: "w-full") do diff --git a/docs/app/components/themes/grid/table.rb b/docs/app/components/themes/grid/table.rb index 0f8a61896..d9fd498ba 100644 --- a/docs/app/components/themes/grid/table.rb +++ b/docs/app/components/themes/grid/table.rb @@ -4,7 +4,7 @@ module Components module Themes module Grid class Table < Components::Base - User = Struct.new(:avatar_url, :name, :username, :commits, :github_url, keyword_init: true) + User = Struct.new(:avatar_url, :name, :username, :commits, :github_url) # def view_template # render RubyUI::Card.new(class: "p-6") do diff --git a/docs/app/views/docs/data_table.rb b/docs/app/views/docs/data_table.rb index f77dcb094..f079b755a 100644 --- a/docs/app/views/docs/data_table.rb +++ b/docs/app/views/docs/data_table.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class Views::Docs::DataTable < Views::Base - Row = Struct.new(:id, :name, :email, :salary, :status, keyword_init: true) + Row = Struct.new(:id, :name, :email, :salary, :status) def view_template @rows = [ diff --git a/docs/app/views/docs/table.rb b/docs/app/views/docs/table.rb index 8ac4d8c03..5eaa2ba69 100644 --- a/docs/app/views/docs/table.rb +++ b/docs/app/views/docs/table.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true class Views::Docs::Table < Views::Base - Invoice = Struct.new(:identifier, :status, :method, :amount, keyword_init: true) - User = Struct.new(:avatar_url, :name, :username, :commits, :github_url, keyword_init: true) + Invoice = Struct.new(:identifier, :status, :method, :amount) + User = Struct.new(:avatar_url, :name, :username, :commits, :github_url) def view_template component = "Table" diff --git a/docs/app/views/docs/tabs.rb b/docs/app/views/docs/tabs.rb index 33b6ff349..b37a2ff80 100644 --- a/docs/app/views/docs/tabs.rb +++ b/docs/app/views/docs/tabs.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class Views::Docs::Tabs < Views::Base - Repo = Struct.new(:github_url, :name, :stars, :version, keyword_init: true) + Repo = Struct.new(:github_url, :name, :stars, :version) def view_template component = "Tabs" diff --git a/gem/lib/ruby_ui/data_table/data_table_docs.rb b/gem/lib/ruby_ui/data_table/data_table_docs.rb index 7864c2b94..535a81a9f 100644 --- a/gem/lib/ruby_ui/data_table/data_table_docs.rb +++ b/gem/lib/ruby_ui/data_table/data_table_docs.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class Views::Docs::DataTable < Views::Base - Row = Struct.new(:id, :name, :email, :salary, :status, keyword_init: true) + Row = Struct.new(:id, :name, :email, :salary, :status) SAMPLE_ROWS = [ Row.new(id: 1, name: "Alice", email: "alice@example.com", salary: 90_000, status: "Active"), diff --git a/gem/lib/ruby_ui/table/table_docs.rb b/gem/lib/ruby_ui/table/table_docs.rb index 8ac4d8c03..5eaa2ba69 100644 --- a/gem/lib/ruby_ui/table/table_docs.rb +++ b/gem/lib/ruby_ui/table/table_docs.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true class Views::Docs::Table < Views::Base - Invoice = Struct.new(:identifier, :status, :method, :amount, keyword_init: true) - User = Struct.new(:avatar_url, :name, :username, :commits, :github_url, keyword_init: true) + Invoice = Struct.new(:identifier, :status, :method, :amount) + User = Struct.new(:avatar_url, :name, :username, :commits, :github_url) def view_template component = "Table" diff --git a/gem/lib/ruby_ui/tabs/tabs_docs.rb b/gem/lib/ruby_ui/tabs/tabs_docs.rb index 33b6ff349..b37a2ff80 100644 --- a/gem/lib/ruby_ui/tabs/tabs_docs.rb +++ b/gem/lib/ruby_ui/tabs/tabs_docs.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class Views::Docs::Tabs < Views::Base - Repo = Struct.new(:github_url, :name, :stars, :version, keyword_init: true) + Repo = Struct.new(:github_url, :name, :stars, :version) def view_template component = "Tabs"