Class: ConfCtl::NixLiteralExpression

Inherits:
Object
  • Object
show all
Defined in:
lib/confctl/nix_literal_expression.rb

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ NixLiteralExpression

Returns a new instance of NixLiteralExpression.



3
4
5
# File 'lib/confctl/nix_literal_expression.rb', line 3

def initialize(value)
  @value = value
end

Instance Method Details

#to_nixObject



11
12
13
# File 'lib/confctl/nix_literal_expression.rb', line 11

def to_nix(**)
  @value
end

#to_sObject



7
8
9
# File 'lib/confctl/nix_literal_expression.rb', line 7

def to_s
  @value
end