Class: Luoma::Name

Inherits:
Object
  • Object
show all
Defined in:
lib/luoma/expression.rb,
sig/luoma/expression.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token, value) ⇒ Name

(t_token, String) -> void

Parameters:

  • token (t_token)
  • value (String)


1057
1058
1059
1060
1061
# File 'lib/luoma/expression.rb', line 1057

def initialize(token, value)
  @token = token
  @value = value
  @span = token
end

Instance Attribute Details

#spant_token (readonly)

Returns the value of attribute span.

Returns:

  • (t_token)


1054
1055
1056
# File 'lib/luoma/expression.rb', line 1054

def span
  @span
end

#tokent_token (readonly)

Returns the value of attribute token.

Returns:

  • (t_token)


1054
1055
1056
# File 'lib/luoma/expression.rb', line 1054

def token
  @token
end

#valueString (readonly)

Returns the value of attribute value.

Returns:

  • (String)


1054
1055
1056
# File 'lib/luoma/expression.rb', line 1054

def value
  @value
end

Instance Method Details

#children::Array[Luoma::_Traversable]

() -> Array

Returns:



408
409
410
# File 'sig/luoma/expression.rbs', line 408

def children
  []
end

#evaluate(context) ⇒ Object

(RenderContext) -> untyped

Parameters:

Returns:

  • (Object)


1064
1065
1066
# File 'lib/luoma/expression.rb', line 1064

def evaluate(context)
  @value
end

#to_sString

() -> String

Returns:

  • (String)


1073
1074
1075
# File 'lib/luoma/expression.rb', line 1073

def to_s
  @value
end