Class: RegularExpression::Compiler::Ruby::Compiled
- Inherits:
-
Object
- Object
- RegularExpression::Compiler::Ruby::Compiled
- Defined in:
- lib/regular_expression/compiler/ruby.rb
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source) ⇒ Compiled
constructor
A new instance of Compiled.
- #to_proc ⇒ Object
Constructor Details
#initialize(source) ⇒ Compiled
Returns a new instance of Compiled.
9 10 11 |
# File 'lib/regular_expression/compiler/ruby.rb', line 9 def initialize(source) @source = source end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
7 8 9 |
# File 'lib/regular_expression/compiler/ruby.rb', line 7 def source @source end |
Instance Method Details
#to_proc ⇒ Object
13 14 15 |
# File 'lib/regular_expression/compiler/ruby.rb', line 13 def to_proc eval(source) # rubocop:disable Security/Eval end |