Class: SpanView::Span::Compiler::KvPair

Inherits:
Struct
  • Object
show all
Defined in:
lib/span_view/span/compiler.rb

Overview

Marks a kv-pair kwarg so render_call can partition it away from plain token strings; code is the already-formatted Ruby value (quoted or verbatim).

Instance Attribute Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



15
16
17
# File 'lib/span_view/span/compiler.rb', line 15

def code
  @code
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



15
16
17
# File 'lib/span_view/span/compiler.rb', line 15

def key
  @key
end