Class: ZSteg::Result::OneChar

Inherits:
Struct
  • Object
show all
Defined in:
lib/zsteg/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#charObject

Returns the value of attribute char

Returns:

  • (Object)

    the current value of char



61
62
63
# File 'lib/zsteg/result.rb', line 61

def char
  @char
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



61
62
63
# File 'lib/zsteg/result.rb', line 61

def size
  @size
end

Instance Method Details

#to_sObject



62
63
64
# File 'lib/zsteg/result.rb', line 62

def to_s
  "[#{char.inspect} repeated #{size} times]".gray
end