Class: Colloquy::Input
- Inherits:
-
String
- Object
- String
- Colloquy::Input
- Defined in:
- lib/colloquy/input.rb
Instance Attribute Summary collapse
-
#direct ⇒ Object
Returns the value of attribute direct.
Instance Method Summary collapse
- #direct? ⇒ Boolean
-
#initialize(input) ⇒ Input
constructor
A new instance of Input.
Constructor Details
#initialize(input) ⇒ Input
Returns a new instance of Input.
5 6 7 8 9 |
# File 'lib/colloquy/input.rb', line 5 def initialize(input) @direct = input.respond_to?(:direct) ? input.direct : false super(input.to_s) end |
Instance Attribute Details
#direct ⇒ Object
Returns the value of attribute direct.
3 4 5 |
# File 'lib/colloquy/input.rb', line 3 def direct @direct end |
Instance Method Details
#direct? ⇒ Boolean
11 12 13 |
# File 'lib/colloquy/input.rb', line 11 def direct? @direct end |