Sha256: 409a8a2103b524190c0aeb75ae54e912b51ff5ab8ab5ed6e410602e14d23a5ac

Contents?: true

Size: 548 Bytes

Versions: 3

Compression:

Stored size: 548 Bytes

Contents

# Simple example
hi "User"
# p hi  # => "User"

# Local variables still work!
local_var = "it is me"
another_var = "not included in config but can be used as usual"

# Complex example
list do
  one "123"
  two "345"
  three do
    one "1"
    three_two one + " 2"
    three_three "three"
  end
  see "will_be_overwritten"
end

list 5 do |index|
  append "anything"
  second index + 1
  square index ** 2
  
  see "overwritten!"
end

starting_time Time.now

assign! :key_by_sym, "test"

assign! keys_by_hash: "test"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
configdsl-1.2.2 examples/test.cdsl.rb
configdsl-1.2.1 examples/test.cdsl.rb
configdsl-1.2.0 examples/test.cdsl.rb