⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
CyborgHood
All Projects
DuckCorp
»
CyborgHood
Overview
Activity
Roadmap
Issues
Documents
Files
Repository
Download (363 Bytes)
Statistics
| Branch:
0.1.x
0.2.x
0.3.x
0.4.x
master
| Tag:
0.1.0
0.1.1
0.1.2
0.2.0
0.2.1
0.2.2
0.2.3
0.3.0
0.3.1
0.3.2
0.3.3
0.3.4
0.3.5
0.4.0
0.4.1
| Revision:
root
/
lib
/
cyborghood
/
lang_additions.rb
@ 78a20655
View
History
Annotate
require
'ostruct'
class
Hash
def
to_ostruct
data
=
self
.
dup
data
.
each_pair
do
|
k
,
v
|
data
[
k
]
=
v
.
to_ostruct
if
v
.
is_a?
(
Hash
)
end
OpenStruct
.
new
(
data
)
end
end
class
Object
def
logger
CyborgHood
::
Logger
.
instance
end
def
self
.
human_name
self
.
name
.
split
(
"::"
).
last
end
def
human_name
self
.
class
.
human_name
end
end
« Previous
1
2
3
4
Next »
(3-3/4)
Loading...