Class: WebFunction::Argument
- Inherits:
-
Object
- Object
- WebFunction::Argument
- Defined in:
- lib/web_function/argument.rb
Instance Method Summary collapse
- #choices ⇒ Object
- #docs ⇒ Object
- #flags ⇒ Object
-
#initialize(argument) ⇒ Argument
constructor
A new instance of Argument.
- #name ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(argument) ⇒ Argument
Returns a new instance of Argument.
5 6 7 |
# File 'lib/web_function/argument.rb', line 5 def initialize(argument) @argument = argument end |
Instance Method Details
#choices ⇒ Object
17 18 19 |
# File 'lib/web_function/argument.rb', line 17 def choices @argument["choices"] end |
#docs ⇒ Object
25 26 27 |
# File 'lib/web_function/argument.rb', line 25 def docs @argument["docs"] end |
#flags ⇒ Object
21 22 23 |
# File 'lib/web_function/argument.rb', line 21 def flags @argument["flags"] end |
#name ⇒ Object
9 10 11 |
# File 'lib/web_function/argument.rb', line 9 def name @argument["name"] end |
#type ⇒ Object
13 14 15 |
# File 'lib/web_function/argument.rb', line 13 def type @argument["type"] end |