Module: Hidr
- Defined in:
- lib/hidr.rb,
lib/hidr/hidr.rb,
lib/hidr/impl.rb,
lib/hidr/version.rb,
lib/hidr/hidr_command.rb
Overview
Hidr::Impl provides methods that convert a string to and from a binary representation.
Defined Under Namespace
Modules: Impl Classes: Hidr, HidrCommand
Constant Summary collapse
- CHARS =
{ binary: ["0", "1"], ascii: ["\s","\t"], unicode: ["\u200B","\uFEFF"], orly: ["\u0CA0", "\u005F"], niceday: ["\s", "\u263A"] }
- VERSION =
"0.0.1"
Class Method Summary collapse
Class Method Details
.build(type) ⇒ Object
16 17 18 19 20 |
# File 'lib/hidr.rb', line 16 def build(type) if CHARS.has_key?(type) ::Hidr::Hidr.new(b0: CHARS[type].first, b1: CHARS[type].last) end end |