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.
191 192 193 194 195 |
# File 'lib/review/preprocessor.rb', line 191 def initialize(op, args, opts) @op = op @args = args @opts = opts end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
198 199 200 |
# File 'lib/review/preprocessor.rb', line 198 def args @args end |
#op ⇒ Object (readonly)
Returns the value of attribute op.
197 198 199 |
# File 'lib/review/preprocessor.rb', line 197 def op @op end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
199 200 201 |
# File 'lib/review/preprocessor.rb', line 199 def opts @opts end |
Instance Method Details
#[](key) ⇒ Object
209 210 211 |
# File 'lib/review/preprocessor.rb', line 209 def [](key) @opts[key] end |
#arg ⇒ Object
201 202 203 |
# File 'lib/review/preprocessor.rb', line 201 def arg @args.first end |
#opt ⇒ Object
205 206 207 |
# File 'lib/review/preprocessor.rb', line 205 def opt @opts.first end |