Class: PantographCore::Globals
- Inherits:
-
Object
- Object
- PantographCore::Globals
- Defined in:
- pantograph_core/lib/pantograph_core/globals.rb
Class Attribute Summary collapse
-
.capture_output ⇒ Object
writeonly
Sets the attribute capture_output.
- .captured_output ⇒ Object
-
.verbose ⇒ Object
writeonly
Sets the attribute verbose.
Class Method Summary collapse
Class Attribute Details
.capture_output=(value) ⇒ Object (writeonly)
Sets the attribute capture_output
9 10 11 |
# File 'pantograph_core/lib/pantograph_core/globals.rb', line 9 def capture_output=(value) @capture_output = value end |
.captured_output ⇒ Object
3 4 5 |
# File 'pantograph_core/lib/pantograph_core/globals.rb', line 3 def self.captured_output @captured_output ||= "" end |
.verbose=(value) ⇒ Object (writeonly)
Sets the attribute verbose
10 11 12 |
# File 'pantograph_core/lib/pantograph_core/globals.rb', line 10 def verbose=(value) @verbose = value end |
Class Method Details
.capture_output? ⇒ Boolean
13 14 15 16 |
# File 'pantograph_core/lib/pantograph_core/globals.rb', line 13 def self.capture_output? return nil unless @capture_output return true end |
.captured_output? ⇒ Boolean
18 19 20 |
# File 'pantograph_core/lib/pantograph_core/globals.rb', line 18 def self.captured_output? @capture_output && @captured_output.to_s.length > 0 end |
.verbose? ⇒ Boolean
22 23 24 |
# File 'pantograph_core/lib/pantograph_core/globals.rb', line 22 def self.verbose? @verbose ? true : nil end |