Class: Fairy::PVarrayPlace

Inherits:
Object
  • Object
show all
Defined in:
lib/fairy/share/file-place.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ary, no) ⇒ PVarrayPlace

Returns a new instance of PVarrayPlace.



101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# File 'lib/fairy/share/file-place.rb', line 101

def initialize(ary, no)
  @ary = ary
  @no = no

  @host = "localhost"
  @path = @url
  if URI_REGEXP =~ @url
	uri = URI(@url)
	@host = uri.host
	if /^\[([0-9a-f.:]*)\]$/ =~ @host
	  @host = $1
	end
	@path = uri.path
  end
end

Instance Attribute Details

#aryObject (readonly)

Returns the value of attribute ary.



117
118
119
# File 'lib/fairy/share/file-place.rb', line 117

def ary
  @ary
end

#noObject (readonly)

Returns the value of attribute no.



118
119
120
# File 'lib/fairy/share/file-place.rb', line 118

def no
  @no
end