Class: Enums::ScriptTypes
- Inherits:
-
Object
- Object
- Enums::ScriptTypes
- Defined in:
- lib/enums/script_types.rb
Constant Summary collapse
- SCRIPT_TYPES =
{:inline => :inline, :stored => :stored}
Instance Attribute Summary collapse
-
#script_type ⇒ Object
readonly
Returns the value of attribute script_type.
Instance Method Summary collapse
-
#initialize(type) ⇒ ScriptTypes
constructor
A new instance of ScriptTypes.
Constructor Details
#initialize(type) ⇒ ScriptTypes
Returns a new instance of ScriptTypes.
14 15 16 |
# File 'lib/enums/script_types.rb', line 14 def initialize type @script_type = type end |
Instance Attribute Details
#script_type ⇒ Object (readonly)
Returns the value of attribute script_type.
6 7 8 |
# File 'lib/enums/script_types.rb', line 6 def script_type @script_type end |