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.
169 170 171 172 173 |
# File 'lib/review/preprocessor.rb', line 169 def initialize(op, args, opts) @op = op @args = args @opts = opts end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
176 177 178 |
# File 'lib/review/preprocessor.rb', line 176 def args @args end |
#op ⇒ Object (readonly)
Returns the value of attribute op.
175 176 177 |
# File 'lib/review/preprocessor.rb', line 175 def op @op end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
177 178 179 |
# File 'lib/review/preprocessor.rb', line 177 def opts @opts end |
Instance Method Details
#[](key) ⇒ Object
187 188 189 |
# File 'lib/review/preprocessor.rb', line 187 def [](key) @opts[key] end |
#arg ⇒ Object
179 180 181 |
# File 'lib/review/preprocessor.rb', line 179 def arg @args.first end |
#opt ⇒ Object
183 184 185 |
# File 'lib/review/preprocessor.rb', line 183 def opt @opts.first end |