Module: Onebox::Mixins::GitBlobOnebox
- Included in:
- Engine::GithubBlobOnebox, Engine::GitlabBlobOnebox
- Defined in:
- lib/onebox/mixins/git_blob_onebox.rb
Defined Under Namespace
Modules: InstanceMethods
Constant Summary collapse
- EXPAND_AFTER =
0b001
- EXPAND_BEFORE =
0b010
- EXPAND_NONE =
0b0
- DEFAULTS =
{ EXPAND_ONE_LINER: EXPAND_AFTER | EXPAND_BEFORE, #set how to expand a one liner. user EXPAND_NONE to disable expand LINES_BEFORE: 10, LINES_AFTER: 10, SHOW_LINE_NUMBER: true, MAX_LINES: 20, MAX_CHARS: 5000 }
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/onebox/mixins/git_blob_onebox.rb', line 6 def self.included(klass) klass.include(Onebox::Engine) klass.include(Onebox::LayoutSupport) klass.matches_regexp(klass.git_regexp) klass.always_https klass.include(InstanceMethods) end |