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.
244 245 246 247 248 |
# File 'lib/review/preprocessor.rb', line 244 def initialize(op, args, opts) @op = op @args = args @opts = opts end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
251 252 253 |
# File 'lib/review/preprocessor.rb', line 251 def args @args end |
#op ⇒ Object (readonly)
Returns the value of attribute op.
250 251 252 |
# File 'lib/review/preprocessor.rb', line 250 def op @op end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
252 253 254 |
# File 'lib/review/preprocessor.rb', line 252 def opts @opts end |
Instance Method Details
#[](key) ⇒ Object
262 263 264 |
# File 'lib/review/preprocessor.rb', line 262 def [](key) @opts[key] end |
#arg ⇒ Object
254 255 256 |
# File 'lib/review/preprocessor.rb', line 254 def arg @args.first end |
#opt ⇒ Object
258 259 260 |
# File 'lib/review/preprocessor.rb', line 258 def opt @opts.first end |