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.
207 208 209 210 211 |
# File 'lib/review/preprocessor.rb', line 207 def initialize(op, args, opts) @op = op @args = args @opts = opts end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
214 215 216 |
# File 'lib/review/preprocessor.rb', line 214 def args @args end |
#op ⇒ Object (readonly)
Returns the value of attribute op.
213 214 215 |
# File 'lib/review/preprocessor.rb', line 213 def op @op end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
215 216 217 |
# File 'lib/review/preprocessor.rb', line 215 def opts @opts end |
Instance Method Details
#[](key) ⇒ Object
225 226 227 |
# File 'lib/review/preprocessor.rb', line 225 def [](key) @opts[key] end |
#arg ⇒ Object
217 218 219 |
# File 'lib/review/preprocessor.rb', line 217 def arg @args.first end |
#opt ⇒ Object
221 222 223 |
# File 'lib/review/preprocessor.rb', line 221 def opt @opts.first end |