File: core_ext.rb

package info (click to toggle)
ruby-cbor 0.5.9.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 424 kB
  • sloc: ansic: 3,437; ruby: 1,732; makefile: 4
file content (133 lines) | stat: -rw-r--r-- 1,910 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133

class NilClass
  #
  # Same as CBOR.encode(self[, io]).
  #
  # @return [String] serialized data
  #
  def to_cbor(io=nil)
  end
end

class TrueClass
  #
  # Same as CBOR.encode(self[, io]).
  #
  # @return [String] serialized data
  #
  def to_cbor(io=nil)
  end
end

class FalseClass
  #
  # Same as CBOR.encode(self[, io]).
  #
  # @return [String] serialized data
  #
  def to_cbor(io=nil)
  end
end

class Fixnum < Integer
  #
  # Same as CBOR.encode(self[, io]).
  #
  # @return [String] serialized data
  #
  def to_cbor(io=nil)
  end
end

class Bignum < Integer
  #
  # Same as CBOR.encode(self[, io]).
  #
  # @return [String] serialized data
  #
  def to_cbor(io=nil)
  end
end

class Float < Numeric
  #
  # Same as CBOR.encode(self[, io]).
  #
  # @return [String] serialized data
  #
  def to_cbor(io=nil)
  end
end

class String
  #
  # Same as CBOR.encode(self[, io]).
  #
  # @return [String] serialized data
  #
  def to_cbor(io=nil)
  end
end

class Array
  #
  # Same as CBOR.encode(self[, io]).
  #
  # @return [String] serialized data
  #
  def to_cbor(io=nil)
  end
end

class Hash
  #
  # Same as CBOR.encode(self[, io]).
  #
  # @return [String] serialized data
  #
  def to_cbor(io=nil)
  end
end

class Time
  #
  # Same as CBOR.encode(self[, io]).
  #
  # @return [String] serialized data
  #
  def to_cbor(io=nil)
  end
end


class Regexp
  #
  # Same as CBOR.encode(self[, io]).
  #
  # @return [String] serialized data
  #
  def to_cbor(io=nil)
  end
end

class URI
  #
  # Same as CBOR.encode(self[, io]).  This method is only defined if
  # the class URI was defined when the CBOR extension was loaded, so
  # +require "uri"+ before +require "cbor"+ if you need this.
  #
  # @return [String] serialized data
  #
  def to_cbor(io=nil)
  end
end

class Symbol
  #
  # Same as CBOR.encode(self[, io]).
  #
  # @return [String] serialized data
  #
  def to_cbor(io=nil)
  end
end