Class: Docks::Themes::API
- Inherits:
-
Base
- Object
- Base
- Docks::Themes::API
- Defined in:
- lib/docks_theme_api/theme.rb,
lib/docks_theme_api/components.rb,
lib/docks_theme_api/helpers/ui_helper.rb,
lib/docks_theme_api/components/base_component.rb,
lib/docks_theme_api/components/table_component.rb,
lib/docks_theme_api/components/popover_component.rb,
lib/docks_theme_api/components/tablist_component.rb,
lib/docks_theme_api/components/code_block_component.rb
Defined Under Namespace
Modules: Components, Helpers
Instance Method Summary collapse
- #configure(config) ⇒ Object
-
#initialize ⇒ API
constructor
A new instance of API.
Constructor Details
#initialize ⇒ API
Returns a new instance of API.
10 11 12 13 14 |
# File 'lib/docks_theme_api/theme.rb', line 10 def initialize project_root = Pathname.new(File.("../../../", __FILE__)) @assets = Assets.new(root: project_root + "assets", source_root: project_root + "source") @helpers = [Helpers] end |
Instance Method Details
#configure(config) ⇒ Object
16 17 18 |
# File 'lib/docks_theme_api/theme.rb', line 16 def configure(config) config.paginate = "pattern" end |