Class: Xing::Edicts::StructureChecker::Context
- Inherits:
-
Object
- Object
- Xing::Edicts::StructureChecker::Context
- Defined in:
- lib/xing/edicts/structure-checker.rb
Instance Attribute Summary collapse
-
#escape_clause_list ⇒ Object
readonly
Returns the value of attribute escape_clause_list.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(hash) ⇒ Context
Returns a new instance of Context.
60 61 62 63 |
# File 'lib/xing/edicts/structure-checker.rb', line 60 def initialize(hash) @escape_clause_list = hash.delete(:escapes) || %w{common framework build} raise "Unknown fields in context: #{hash.inspect}" unless hash.empty? end |
Instance Attribute Details
#escape_clause_list ⇒ Object (readonly)
Returns the value of attribute escape_clause_list.
65 66 67 |
# File 'lib/xing/edicts/structure-checker.rb', line 65 def escape_clause_list @escape_clause_list end |