0.0
No release in over 3 years
network-core
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 1.1.1
~> 0.9.0
 Project Readme

network utility

Classic Reference

All documents are predefined in document directory.

require  'cc'
CC.use 'kernel', 'file', 'chrono'
requires 'network', 'CasetDown/casetdown'

@sign = [] # signature is not mustable

# Mode A: Runtime
["document/telnet.md"].each do|path|
  codes = path.refine
  codes.run{|code|eval(code)}
end

# OR

# Mode B: Static
build = ["document/telnet.md"].inject(String.new) do |build, path|
  codes = path.refine
  build << "\n\n"+ codes.join("\n\n")
end
File.write "build.rb", build
require_relative 'build'

puts C7609

Custom Refine

Use custom-path.md path #refine(:active) can load a markdown document anywhere.

```ruby
module Custom
  def path
    'Hello~'
  end
end
```
build = "custom-path.md".refine(:active).join("\n")
File.write "build.rb", build
require_relative 'build'

include Custom
puts path