Class: Guardrails::Tokens::Token

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

Instance Attribute Summary collapse

Instance Attribute Details

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



10
11
12
# File 'lib/guardrails/tokens.rb', line 10

def file
  @file
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



10
11
12
# File 'lib/guardrails/tokens.rb', line 10

def line
  @line
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



10
11
12
# File 'lib/guardrails/tokens.rb', line 10

def name
  @name
end

#syntaxObject

Returns the value of attribute syntax

Returns:

  • (Object)

    the current value of syntax



10
11
12
# File 'lib/guardrails/tokens.rb', line 10

def syntax
  @syntax
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



10
11
12
# File 'lib/guardrails/tokens.rb', line 10

def value
  @value
end