Class: Vanilla::SnipReferenceParser::SnipTransform::Arg

Inherits:
Object
  • Object
show all
Defined in:
lib/vanilla/snip_reference_parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(k, v) ⇒ Arg

Returns a new instance of Arg.



92
# File 'lib/vanilla/snip_reference_parser.rb', line 92

def initialize(k, v); @k, @v = k, v; end

Instance Method Details

#to_hObject



93
# File 'lib/vanilla/snip_reference_parser.rb', line 93

def to_h; {@k.to_sym => @v}; end