module Aws::Templates::Utils::Parametrized::Getter::Dsl

Syntax sugar for getters definition

It injects the methods as class-scope methods into mixing classes. The methods are factories to create particular type of getter

Public Instance Methods

as_instance_variable() click to toggle source

Get parameter from instance variables as is

alias for AsInstanceVariable class

# File lib/aws/templates/utils/parametrized/getter/dsl.rb, line 21
def as_instance_variable
  Parametrized::Getter::AsInstanceVariable.instance
end
as_is() click to toggle source

Get parameter from Options as is

alias for AsIs class

# File lib/aws/templates/utils/parametrized/getter/dsl.rb, line 29
def as_is
  Parametrized::Getter::AsIs.instance
end
one_of(*getters) click to toggle source

Choose one non-nil value from nested getters

alias for OneOf class

# File lib/aws/templates/utils/parametrized/getter/dsl.rb, line 53
def one_of(*getters)
  Parametrized::Getter::OneOf.new(getters)
end
path(*v, &blk) click to toggle source

Look up value of the parameter with path

alias for Path class

# File lib/aws/templates/utils/parametrized/getter/dsl.rb, line 45
def path(*v, &blk)
  Parametrized::Getter::Path.new(v.empty? ? blk : v)
end
value(v = nil, &blk) click to toggle source

Calculate value of parameter

alias for Value class

# File lib/aws/templates/utils/parametrized/getter/dsl.rb, line 37
def value(v = nil, &blk)
  Parametrized::Getter::Value.new(v.nil? ? blk : v)
end