Class: ReVIEW::Preprocessor::Directive
- Defined in:
- lib/review/preprocessor.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#op ⇒ Object
readonly
Returns the value of attribute op.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
- #[](key) ⇒ Object
- #arg ⇒ Object
-
#initialize(op, args, opts) ⇒ Directive
constructor
A new instance of Directive.
- #opt ⇒ Object
Constructor Details
#initialize(op, args, opts) ⇒ Directive
Returns a new instance of Directive.
205 206 207 208 209 |
# File 'lib/review/preprocessor.rb', line 205 def initialize(op, args, opts) @op = op @args = args @opts = opts end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
212 213 214 |
# File 'lib/review/preprocessor.rb', line 212 def args @args end |
#op ⇒ Object (readonly)
Returns the value of attribute op.
211 212 213 |
# File 'lib/review/preprocessor.rb', line 211 def op @op end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
213 214 215 |
# File 'lib/review/preprocessor.rb', line 213 def opts @opts end |
Instance Method Details
#[](key) ⇒ Object
223 224 225 |
# File 'lib/review/preprocessor.rb', line 223 def [](key) @opts[key] end |
#arg ⇒ Object
215 216 217 |
# File 'lib/review/preprocessor.rb', line 215 def arg @args.first end |
#opt ⇒ Object
219 220 221 |
# File 'lib/review/preprocessor.rb', line 219 def opt @opts.first end |