Class: Ppl::Application::Input
- Inherits:
-
Object
- Object
- Ppl::Application::Input
- Defined in:
- lib/ppl/application/input.rb
Instance Attribute Summary collapse
-
#argf ⇒ Object
Returns the value of attribute argf.
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#options ⇒ Object
Returns the value of attribute options.
-
#stdin ⇒ Object
Returns the value of attribute stdin.
Instance Method Summary collapse
-
#initialize(arguments = []) ⇒ Input
constructor
A new instance of Input.
Constructor Details
#initialize(arguments = []) ⇒ Input
Returns a new instance of Input.
8 9 10 11 12 13 |
# File 'lib/ppl/application/input.rb', line 8 def initialize(arguments=[]) @arguments = arguments @options = {} @stdin = $stdin @argf = ARGF end |
Instance Attribute Details
#argf ⇒ Object
Returns the value of attribute argf.
6 7 8 |
# File 'lib/ppl/application/input.rb', line 6 def argf @argf end |
#arguments ⇒ Object
Returns the value of attribute arguments.
3 4 5 |
# File 'lib/ppl/application/input.rb', line 3 def arguments @arguments end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/ppl/application/input.rb', line 4 def @options end |
#stdin ⇒ Object
Returns the value of attribute stdin.
5 6 7 |
# File 'lib/ppl/application/input.rb', line 5 def stdin @stdin end |