Module: AWS::Core::OptionGrammar::Descriptors::String

Extended by:
NoArgs
Included in:
AWS::Core::OptionGrammar::DefaultOption
Defined in:
lib/aws/core/option_grammar.rb

Instance Method Summary collapse

Methods included from NoArgs

apply

Instance Method Details

#encode_value(value) ⇒ Object



98
99
100
# File 'lib/aws/core/option_grammar.rb', line 98

def encode_value(value)
  value.to_s
end

#validate(value, context = nil) ⇒ Object



93
94
95
96
# File 'lib/aws/core/option_grammar.rb', line 93

def validate(value, context = nil)
  raise format_error("string value", context) unless
    value.respond_to? :to_str
end