Module: CodeLines
- Defined in:
- lib/codelines/adapter.rb,
lib/codelines/version.rb,
lib/codelines/codelines.rb,
lib/codelines/adapters/github.rb
Overview
–
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
++
Defined Under Namespace
Constant Summary collapse
- VERSION =
'0.3'
Class Attribute Summary collapse
-
.adapter ⇒ Object
readonly
Returns the value of attribute adapter.
Class Method Summary collapse
- .authentication(*args, &block) ⇒ Object
- .count(*args, &block) ⇒ Object
- .setup(adapter, profile) ⇒ Object
Class Attribute Details
.adapter ⇒ Object (readonly)
Returns the value of attribute adapter.
14 15 16 |
# File 'lib/codelines/codelines.rb', line 14 def adapter @adapter end |
Class Method Details
.authentication(*args, &block) ⇒ Object
20 21 22 23 |
# File 'lib/codelines/codelines.rb', line 20 def authentication(*args, &block) raise LoadError, 'adapter not found' unless @adapter @adapter.authentication *args, &block end |
.count(*args, &block) ⇒ Object
25 26 27 28 |
# File 'lib/codelines/codelines.rb', line 25 def count(*args, &block) raise LoadError, 'adapter not found' unless @adapter @adapter.count *args, &block end |
.setup(adapter, profile) ⇒ Object
16 17 18 |
# File 'lib/codelines/codelines.rb', line 16 def setup(adapter, profile) @adapter = adapter.new profile end |