Module: TellThem
- Defined in:
- lib/tell-them.rb,
lib/tell-them/version.rb,
lib/tell-them/tell-them.rb
Defined Under Namespace
Modules: Rails
Classes: TellThemStore
Constant Summary
collapse
- MAX_URL_DISPLAY_LENGTH =
60
Class Method Summary
collapse
Class Method Details
.add(data) ⇒ Object
9
10
11
|
# File 'lib/tell-them/tell-them.rb', line 9
def self.add(data)
TellThemStore.instance.add(data)
end
|
.data ⇒ Object
22
23
24
|
# File 'lib/tell-them/tell-them.rb', line 22
def self.data
TellThemStore.instance.data
end
|
13
14
15
|
# File 'lib/tell-them/tell-them.rb', line 13
def self.enable_media_queries(data)
TellThemStore.instance.enable_media_queries(data)
end
|
.has_data? ⇒ Boolean
18
19
20
|
# File 'lib/tell-them/tell-them.rb', line 18
def self.has_data?
TellThemStore.instance.has_data?
end
|
30
31
32
|
# File 'lib/tell-them/tell-them.rb', line 30
def self.has_media_grid_info?
TellThemStore.instance.has_media_grid_info?
end
|
26
27
28
|
# File 'lib/tell-them/tell-them.rb', line 26
def self.has_media_queries?
TellThemStore.instance.has_media_queries?
end
|
.html ⇒ Object
42
43
44
45
46
47
|
# File 'lib/tell-them/tell-them.rb', line 42
def self.html
return '' unless (has_data? || has_media_queries?) && ::Rails.env.development?
return ActionController::Base.helpers.stylesheet_link_tag('tell-them') +
box_html.html_safe +
ActionController::Base.helpers.javascript_include_tag('tell-them', async: true)
end
|
38
39
40
|
# File 'lib/tell-them/tell-them.rb', line 38
def self.media_grid_max_columns
TellThemStore.instance.media_grid_max_columns
end
|
34
35
36
|
# File 'lib/tell-them/tell-them.rb', line 34
def self.media_queries
TellThemStore.instance.media_queries
end
|
.reset ⇒ Object
5
6
7
|
# File 'lib/tell-them/tell-them.rb', line 5
def self.reset
TellThemStore.instance
end
|