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



232
233
234
235
# File 'lib/kdl/types/url_template.rb', line 232

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

Instance Method Details

#expandObject



237
238
239
# File 'lib/kdl/types/url_template.rb', line 237

def expand(*)
  @value
end