Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/vagrant-nixos/nix.rb
Instance Method Summary collapse
Instance Method Details
#to_nix(indent = 0) ⇒ Object
71 72 73 74 75 |
# File 'lib/vagrant-nixos/nix.rb', line 71 def to_nix(indent = 0) return self if self.slice(0,2) == "./" return %{''#{self}''} if self =~ /\n/ %{"#{self}"} end |