Class: Lisp::Format::Directives::Binary

Inherits:
Number show all
Defined in:
lib/carat/lisp-format.rb

Overview

Represents the ~B (Binary) directive.

Instance Attribute Summary

Attributes inherited from Directive

#pos

Instance Method Summary collapse

Methods inherited from Number

#execute

Methods inherited from Directive

#execute, #join

Constructor Details

#initialize(args) ⇒ Binary

Set radix to 2.



697
698
699
# File 'lib/carat/lisp-format.rb', line 697

def initialize(args)
  super(*args << 2)
end