Class: Abt::Ari
- Inherits:
-
Object
- Object
- Abt::Ari
- Defined in:
- lib/abt/ari.rb
Instance Attribute Summary collapse
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#scheme ⇒ Object
readonly
Returns the value of attribute scheme.
Instance Method Summary collapse
-
#initialize(scheme: nil, path: nil, flags: []) ⇒ Ari
constructor
A new instance of Ari.
- #to_s ⇒ Object
Constructor Details
#initialize(scheme: nil, path: nil, flags: []) ⇒ Ari
Returns a new instance of Ari.
7 8 9 10 11 |
# File 'lib/abt/ari.rb', line 7 def initialize(scheme: nil, path: nil, flags: []) @scheme = scheme @path = path @flags = flags end |
Instance Attribute Details
#flags ⇒ Object (readonly)
Returns the value of attribute flags.
5 6 7 |
# File 'lib/abt/ari.rb', line 5 def flags @flags end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/abt/ari.rb', line 5 def path @path end |
#scheme ⇒ Object (readonly)
Returns the value of attribute scheme.
5 6 7 |
# File 'lib/abt/ari.rb', line 5 def scheme @scheme end |
Instance Method Details
#to_s ⇒ Object
13 14 15 16 17 18 |
# File 'lib/abt/ari.rb', line 13 def to_s str = scheme str += ":#{path}" if path [str, *flags].join(" ") end |