Module: Temple::Mixins::Options
- Included in:
- ERB::Parser, Engine, Filter, Generator
- Defined in:
- lib/temple/mixins/options.rb
Instance Attribute Summary (collapse)
-
- (Object) options
readonly
Returns the value of attribute options.
Class Method Summary (collapse)
Instance Method Summary (collapse)
-
- (Options) initialize(options = {})
A new instance of Options.
Instance Attribute Details
- (Object) options (readonly)
Returns the value of attribute options
21 22 23 |
# File 'lib/temple/mixins/options.rb', line 21 def @options end |
Class Method Details
+ (Object) included(base)
17 18 19 |
# File 'lib/temple/mixins/options.rb', line 17 def self.included(base) base.class_eval { extend DefaultOptions } end |
Instance Method Details
- (Options) initialize(options = {})
A new instance of Options
23 24 25 |
# File 'lib/temple/mixins/options.rb', line 23 def initialize( = {}) @options = ImmutableHash.new(, self.class.) end |