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



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

def bin
  @bin
end

Instance Method Details

#+(other) ⇒ Object



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

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

#to_sObject



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

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