Class: Enums::ScriptTypes

Inherits:
Object
  • Object
show all
Defined in:
lib/enums/script_types.rb

Constant Summary collapse

SCRIPT_TYPES =
{:inline => :inline, :stored => :stored}

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject (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