Class
Constants
No documentation available
Attributes
Read
The raw size
Class Methods
::
lib/resolv.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/resolv.rb, line 2661
def self.create(arg)
case arg
when Size
return arg
when String
scalar = ''
if Regex =~ arg
scalar = [(($1.to_f*(1e2)).to_i.to_s[0].to_i*(2**4)+(($1.to_f*(1e2)).to_i.to_s.length-1))].pack("C")
else
raise ArgumentError.new("not a properly formed Size string: " + arg)
end
return Size.new(scalar)
else
raise ArgumentError.new("cannot interpret as Size: #{arg.inspect}")
end
end
::
lib/resolv.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/resolv.rb, line 2678
def initialize(scalar)
@scalar = scalar
end
No documentation available