Class: WebFunction::Argument
- Inherits:
-
Object
- Object
- WebFunction::Argument
- Defined in:
- lib/web_function/argument.rb
Instance Method Summary collapse
- #docs ⇒ Object
- #flags ⇒ Object
-
#initialize(argument) ⇒ Argument
constructor
A new instance of Argument.
- #name ⇒ Object
- #to_s ⇒ 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
#docs ⇒ Object
21 22 23 |
# File 'lib/web_function/argument.rb', line 21 def docs @argument["docs"] end |
#flags ⇒ Object
17 18 19 |
# File 'lib/web_function/argument.rb', line 17 def flags @argument["flags"] end |
#name ⇒ Object
9 10 11 |
# File 'lib/web_function/argument.rb', line 9 def name @argument["name"] end |
#to_s ⇒ Object
25 26 27 |
# File 'lib/web_function/argument.rb', line 25 def to_s [" - #{name} (#{type}):", docs].join(" ") end |
#type ⇒ Object
13 14 15 |
# File 'lib/web_function/argument.rb', line 13 def type @argument["type"] end |