Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9fdcdb77
Commit
9fdcdb77
authored
May 09, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move blob_snippet to gitlab_git gem
parent
b1aaf0d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
32 deletions
+0
-32
lib/gitlab/blob_snippet.rb
lib/gitlab/blob_snippet.rb
+0
-32
No files found.
lib/gitlab/blob_snippet.rb
deleted
100644 → 0
View file @
b1aaf0d2
module
Gitlab
class
BlobSnippet
include
Linguist
::
BlobHelper
attr_accessor
:project
attr_accessor
:tree
attr_accessor
:lines
attr_accessor
:filename
attr_accessor
:startline
def
initialize
(
project
,
tree
,
lines
,
startline
,
filename
)
@project
,
@tree
,
@lines
,
@startline
,
@filename
=
project
,
tree
,
lines
,
startline
,
filename
end
def
data
lines
.
join
(
"
\n
"
)
end
def
name
filename
end
def
size
data
.
length
end
def
mode
nil
end
end
end
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment