class ComponentLibrary::Configuration
Attributes
application_css[RW]
multiconfigure[RW]
root_directory[RW]
root_path[RW]
Public Class Methods
new()
click to toggle source
# File lib/component_library.rb, line 38 def initialize @root_path = "components" @root_directory = "component" @application_css = "application" end
Public Instance Methods
for(filter)
click to toggle source
# File lib/component_library.rb, line 49 def for(filter) return multiconfigure.select {|mc| mc[:root_path] == filter } if multiconfigure.present? [{ :root_path => @root_path, :root_directory => @root_directory, :application_css => @application_css }] end
root_paths()
click to toggle source
# File lib/component_library.rb, line 44 def root_paths return multiconfigure.map{|mc| mc[:root_path]} if multiconfigure.present? [@root_path] end