Class: Fairy::PVarrayPlace
- Inherits:
-
Object
- Object
- Fairy::PVarrayPlace
- Defined in:
- lib/fairy/share/file-place.rb
Instance Attribute Summary collapse
-
#ary ⇒ Object
readonly
Returns the value of attribute ary.
-
#no ⇒ Object
readonly
Returns the value of attribute no.
Instance Method Summary collapse
-
#initialize(ary, no) ⇒ PVarrayPlace
constructor
A new instance of PVarrayPlace.
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
#ary ⇒ Object (readonly)
Returns the value of attribute ary.
117 118 119 |
# File 'lib/fairy/share/file-place.rb', line 117 def ary @ary end |
#no ⇒ Object (readonly)
Returns the value of attribute no.
118 119 120 |
# File 'lib/fairy/share/file-place.rb', line 118 def no @no end |