Class: Canon::Config::FormatConfig
- Inherits:
-
Object
- Object
- Canon::Config::FormatConfig
- Defined in:
- lib/canon/config.rb
Overview
Format-specific configuration Each format (XML, HTML, JSON, YAML) has its own instance
Instance Attribute Summary collapse
-
#diff ⇒ Object
readonly
Returns the value of attribute diff.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#match ⇒ Object
readonly
Returns the value of attribute match.
-
#preprocessing ⇒ Object
Returns the value of attribute preprocessing.
Instance Method Summary collapse
-
#initialize(format) ⇒ FormatConfig
constructor
A new instance of FormatConfig.
- #reset! ⇒ Object
Constructor Details
#initialize(format) ⇒ FormatConfig
Returns a new instance of FormatConfig.
97 98 99 100 101 102 |
# File 'lib/canon/config.rb', line 97 def initialize(format) @format = format @match = MatchConfig.new(format) @diff = DiffConfig.new(format) @preprocessing = nil end |
Instance Attribute Details
#diff ⇒ Object (readonly)
Returns the value of attribute diff.
94 95 96 |
# File 'lib/canon/config.rb', line 94 def diff @diff end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
94 95 96 |
# File 'lib/canon/config.rb', line 94 def format @format end |
#match ⇒ Object (readonly)
Returns the value of attribute match.
94 95 96 |
# File 'lib/canon/config.rb', line 94 def match @match end |
#preprocessing ⇒ Object
Returns the value of attribute preprocessing.
95 96 97 |
# File 'lib/canon/config.rb', line 95 def preprocessing @preprocessing end |
Instance Method Details
#reset! ⇒ Object
104 105 106 107 108 |
# File 'lib/canon/config.rb', line 104 def reset! @match.reset! @diff.reset! @preprocessing = nil end |