Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/origami/object.rb

Overview

:nodoc:

Direct Known Subclasses

Origami::ByteString, Origami::HexaString

Instance Method Summary collapse

Instance Method Details

#is_binary_data?Boolean

Returns:

  • (Boolean)


94
95
96
# File 'lib/origami/object.rb', line 94

def is_binary_data?
  ( self.count( "\x00" ) > 0 ) unless empty?
end

#to_oObject



90
91
92
# File 'lib/origami/object.rb', line 90

def to_o
  Origami::ByteString.new(self)
end