UNPKG
brobbot
Version:
latest (6.1.0)
6.1.0
6.0.0
5.0.3
5.0.2
5.0.1
5.0.0
4.0.11
4.0.10
4.0.9
4.0.8
4.0.7
4.0.6
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.5.1
3.5.0
3.4.0
3.3.1
3.3.0
3.2.0
3.1.1
3.1.0
3.0.3
3.0.2
3.0.1
3.0.0
A simple helpful robot for your Company
b3nj4m/brobbot
brobbot
/
src
/
brain-segment.coffee
13 lines
(8 loc)
•
227 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
_ =
require
'lodash'
class
BrainSegment
constructor
: (
brain
,
segmentName
= _.
uniqueId
()) ->
obj
=
Object
.
create
(
brain
)
obj
.
key
= (
key
) -> "#
{segmentName}:
#{key}"
return
obj module.exports = BrainSegment