Class: Proc::Argument
- Inherits:
-
Object
- Object
- Proc::Argument
- Defined in:
- lib/proc/argument.rb
Instance Method Summary collapse
-
#initialize(name, **options) ⇒ Argument
constructor
A new instance of Argument.
- #serialize ⇒ Object
- #serialized_options ⇒ Object
Constructor Details
#initialize(name, **options) ⇒ Argument
5 6 7 8 |
# File 'lib/proc/argument.rb', line 5 def initialize(name, **) @name = name = end |
Instance Method Details
#serialize ⇒ Object
10 11 12 |
# File 'lib/proc/argument.rb', line 10 def serialize ["@@", @name.to_s, ] end |
#serialized_options ⇒ Object
14 15 16 17 18 |
# File 'lib/proc/argument.rb', line 14 def .each_pair.each_with_object({}) { |(key, value), hash| hash[key.to_s] = serialize_value(value) } end |