Class: Vanilla::SnipReferenceParser::SnipTransform::Arg
- Inherits:
-
Object
- Object
- Vanilla::SnipReferenceParser::SnipTransform::Arg
- Defined in:
- lib/vanilla/snip_reference_parser.rb
Instance Method Summary collapse
-
#initialize(k, v) ⇒ Arg
constructor
A new instance of Arg.
- #to_h ⇒ Object
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_h ⇒ Object
93 |
# File 'lib/vanilla/snip_reference_parser.rb', line 93 def to_h; {@k.to_sym => @v}; end |