Class: Docks::Themes::API

Inherits:
Base
  • Object
show all
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

Constructor Details

#initializeAPI

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.expand_path("../../../", __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