Module: GoodGuide::Gibbon
- Defined in:
- lib/goodguide/gibbon.rb,
lib/goodguide/gibbon/version.rb
Defined Under Namespace
Modules: Util
Classes: AbstractClient, Context, GibbonError, JS, MissingData, Program, QueryError, RuntimeClient, RuntimeError, SemanticError, StaticClient, StaticError
Class Method Summary
collapse
Class Method Details
.dev_js_lib ⇒ Object
116
117
118
|
# File 'lib/goodguide/gibbon.rb', line 116
def self.dev_js_lib
root.join('vendor/gibbon/gibbon.browser.dev.js')
end
|
.js_lib ⇒ Object
112
113
114
|
# File 'lib/goodguide/gibbon.rb', line 112
def self.js_lib
root.join('vendor/gibbon/gibbon.browser.js')
end
|
.js_source ⇒ Object
120
121
122
|
# File 'lib/goodguide/gibbon.rb', line 120
def self.js_source
@js_source ||= File.read(js_lib)
end
|
.root ⇒ Object
108
109
110
|
# File 'lib/goodguide/gibbon.rb', line 108
def self.root
Pathname.new(__FILE__).dirname.parent.parent
end
|
.version ⇒ Object
5
6
7
|
# File 'lib/goodguide/gibbon/version.rb', line 5
def self.version
JSON.load(File.read('vendor/gibbon/package.json'))['version']
end
|