Module: Construqt::Firewalls::InputOutputOnly
- Defined in:
- lib/construqt/firewalls.rb
Instance Method Summary collapse
- #input_only ⇒ Object
-
#input_only? ⇒ Boolean
the big side effect.
- #output_only ⇒ Object
- #output_only? ⇒ Boolean
Instance Method Details
#input_only ⇒ Object
47 48 49 50 51 52 |
# File 'lib/construqt/firewalls.rb', line 47 def input_only @set = true @input_only = true @output_only = false self end |
#input_only? ⇒ Boolean
the big side effect
39 40 41 |
# File 'lib/construqt/firewalls.rb', line 39 def input_only? (!@set && true) || @input_only end |
#output_only ⇒ Object
54 55 56 57 58 59 |
# File 'lib/construqt/firewalls.rb', line 54 def output_only @set = true @input_only = false @output_only = true self end |
#output_only? ⇒ Boolean
43 44 45 |
# File 'lib/construqt/firewalls.rb', line 43 def output_only? (!@set && true) || @output_only end |