Class: Values::Parser::Token

Inherits:
Struct
  • Object
show all
Defined in:
lib/csv11.rb

Direct Known Subclasses

Quoted, TripleQuoted, Unquoted

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



18
19
20
# File 'lib/csv11.rb', line 18

def name
  @name
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



18
19
20
# File 'lib/csv11.rb', line 18

def value
  @value
end

Instance Method Details

#quoted?Boolean

Returns:

  • (Boolean)


20
# File 'lib/csv11.rb', line 20

def quoted?()        name=='QUOTED';        end

#triple_quoted?Boolean

Returns:

  • (Boolean)


21
# File 'lib/csv11.rb', line 21

def triple_quoted?() name=='TRIPLE_QUOTED'; end

#unquoted?Boolean

Returns:

  • (Boolean)


19
# File 'lib/csv11.rb', line 19

def unquoted?()      name=='UNQUOTED';      end