Class: KDL::Types::URLTemplate::StringLiteral

Inherits:
Part
  • Object
show all
Defined in:
lib/kdl/types/url_template.rb

Instance Method Summary collapse

Methods inherited from Part

allow_reserved?, #expand_variables, keep_empties?, #prefix, #separator, with_name?

Constructor Details

#initialize(value) ⇒ StringLiteral

Returns a new instance of StringLiteral.



230
231
232
233
# File 'lib/kdl/types/url_template.rb', line 230

def initialize(value)
  super()
  @value = value
end

Instance Method Details

#expandObject



235
236
237
# File 'lib/kdl/types/url_template.rb', line 235

def expand(*)
  @value
end