Class: Jade::Bytes::Bytes

Inherits:
Data
  • Object
show all
Defined in:
lib/jade/runtime.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#binObject (readonly)

Returns the value of attribute bin

Returns:

  • (Object)

    the current value of bin



46
47
48
# File 'lib/jade/runtime.rb', line 46

def bin
  @bin
end

Instance Method Details

#+(other) ⇒ Object



48
# File 'lib/jade/runtime.rb', line 48

def +(other) = Bytes.new(bin + other.bin)

#to_sObject



47
# File 'lib/jade/runtime.rb', line 47

def to_s = "Bytes(#{bin.bytesize})"