Class: Riddl::Utils::Turtle::File

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby/riddl/utils/turtle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#changedObject

Returns the value of attribute changed.



11
12
13
# File 'lib/ruby/riddl/utils/turtle.rb', line 11

def changed
  @changed
end

#dataObject

Returns the value of attribute data.



11
12
13
# File 'lib/ruby/riddl/utils/turtle.rb', line 11

def data
  @data
end

#urlObject (readonly)

Returns the value of attribute url.



12
13
14
# File 'lib/ruby/riddl/utils/turtle.rb', line 12

def url
  @url
end