Class: Riddl::Utils::Turtle::File
- Inherits:
-
Object
- Object
- Riddl::Utils::Turtle::File
- Defined in:
- lib/ruby/riddl/utils/turtle.rb
Instance Attribute Summary collapse
-
#changed ⇒ Object
Returns the value of attribute changed.
-
#data ⇒ Object
Returns the value of attribute data.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url) ⇒ File
constructor
A new instance of File.
Constructor Details
#initialize(url) ⇒ File
Returns a new instance of File.
14 15 16 17 18 |
# File 'lib/ruby/riddl/utils/turtle.rb', line 14 def initialize(url) @url = url @data = "" @changed = Time.at(0) end |
Instance Attribute Details
#changed ⇒ Object
Returns the value of attribute changed.
11 12 13 |
# File 'lib/ruby/riddl/utils/turtle.rb', line 11 def changed @changed end |
#data ⇒ Object
Returns the value of attribute data.
11 12 13 |
# File 'lib/ruby/riddl/utils/turtle.rb', line 11 def data @data end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
12 13 14 |
# File 'lib/ruby/riddl/utils/turtle.rb', line 12 def url @url end |