Top Level Namespace
Defined Under Namespace
Modules: Genesis, GenesisHelper, GenesisKernel, HeadlessRenderer, OpalRenderer, Render, Sanitizer, ServerRenderer, Utilities
Classes: Atome, Universe
Instance Method Summary
collapse
Instance Method Details
#box(params = {}, formated = false) ⇒ Object
3
4
5
6
|
# File 'lib/atome/kernel/generators/shapes.rb', line 3
def box(params = {}, formated = false)
formated
Atome.new(color: {})
end
|
#eval_protection ⇒ Object
6
7
8
|
# File 'lib/atome.rb', line 6
def eval_protection
binding
end
|
#ping(address, my_proc: false) ⇒ Object
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# File 'lib/atome/extensions/ping.rb', line 1
def ping(address, my_proc: false)
def up?(host, my_proc)
check = Net::Ping::External.new(host)
if check.ping?
puts "ping respond!! "
end
end
chost = address
puts up?(chost, my_proc) end
|
#up?(host, my_proc) ⇒ Boolean
if RUBY_ENGINE.downcase != 'opal'
3
4
5
6
7
8
|
# File 'lib/atome/extensions/ping.rb', line 3
def up?(host, my_proc)
check = Net::Ping::External.new(host)
if check.ping?
puts "ping respond!! "
end
end
|