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.



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

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

Instance Method Details

#to_hObject



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

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