Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/nix/convert.rb

Instance Method Summary collapse

Instance Method Details

#to_nix(indent = 0) ⇒ Object


36
37
38
39
# File 'lib/nix/convert.rb', line 36

def to_nix(indent = 0)
  # TODO: escape ${var} in string
  "''#{self}''"
end