Class: TripleParser::Splitter

Inherits:
String
  • Object
show all
Defined in:
lib/triple_parser/splitter.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argumentsObject

Returns the value of attribute arguments.



5
6
7
# File 'lib/triple_parser/splitter.rb', line 5

def arguments
  @arguments
end

#partsObject

Returns the value of attribute parts.



5
6
7
# File 'lib/triple_parser/splitter.rb', line 5

def parts
  @parts
end

#rdf_styleObject

Returns the value of attribute rdf_style.



5
6
7
# File 'lib/triple_parser/splitter.rb', line 5

def rdf_style
  @rdf_style
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/triple_parser/splitter.rb', line 5

def url
  @url
end

Class Method Details

.can_split?(string) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/triple_parser/splitter.rb', line 7

def self.can_split?(string)
  raise "Need to define test to determine if string can be converted using this class"
end

Instance Method Details

#typeObject



15
16
17
# File 'lib/triple_parser/splitter.rb', line 15

def type
  parts[:type]
end

#valueObject



19
20
21
# File 'lib/triple_parser/splitter.rb', line 19

def value
  parts[:value]
end