Class: TripleParser::Splitter
- Inherits:
-
String
- Object
- String
- TripleParser::Splitter
- Defined in:
- lib/triple_parser/splitter.rb
Direct Known Subclasses
BracketedUrlSplitter, ColonSeparatedSplitter, RegionalTextSplitter, UnspecifiedSplitter, VariableSplitter
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#parts ⇒ Object
Returns the value of attribute parts.
-
#rdf_style ⇒ Object
Returns the value of attribute rdf_style.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments.
5 6 7 |
# File 'lib/triple_parser/splitter.rb', line 5 def arguments @arguments end |
#parts ⇒ Object
Returns the value of attribute parts.
5 6 7 |
# File 'lib/triple_parser/splitter.rb', line 5 def parts @parts end |
#rdf_style ⇒ Object
Returns the value of attribute rdf_style.
5 6 7 |
# File 'lib/triple_parser/splitter.rb', line 5 def rdf_style @rdf_style end |
#url ⇒ Object
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
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
#type ⇒ Object
15 16 17 |
# File 'lib/triple_parser/splitter.rb', line 15 def type parts[:type] end |
#value ⇒ Object
19 20 21 |
# File 'lib/triple_parser/splitter.rb', line 19 def value parts[:value] end |