Class: Ppl::Application::Input

Inherits:
Object
  • Object
show all
Defined in:
lib/ppl/application/input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argfObject

Returns the value of attribute argf.



6
7
8
# File 'lib/ppl/application/input.rb', line 6

def argf
  @argf
end

#argumentsObject

Returns the value of attribute arguments.



3
4
5
# File 'lib/ppl/application/input.rb', line 3

def arguments
  @arguments
end

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/ppl/application/input.rb', line 4

def options
  @options
end

#stdinObject

Returns the value of attribute stdin.



5
6
7
# File 'lib/ppl/application/input.rb', line 5

def stdin
  @stdin
end