Top Level Namespace

Defined Under Namespace

Modules: AdditionalMethods, AdditionalVariables, Arguments, Pokotarou, Ptool Classes: ArrayOperation, ConstParser, Converter, DataRegister, DataStructure, ExpressionParser, FileLoader, LoopExpressionParser, MisMatchArgType, NothingDataError, Option, ParseError, PokotarouHandler, RegisterError, ReturnExpressionParser, SeedError, SeedExpressionParser, Seeder, YmlLoader

Constant Summary collapse

FOREIGN_KEY_SYMBOL =
"F|"
COLUMN_SYMBOL =
"C|"
FOREIGN_KEY_REGEXP =
/^F\|[A-Z][:A-Za-z0-9]*$/
COLUMN_REGEXP =
/^C\|[A-Z][:A-Za-z0-9]*\|[a-z][:a-z0-9]*$/
EXPRESSION_REGEXP =
/^\s*<.*>\s*$/

Instance Method Summary collapse

Instance Method Details

#argsObject



1
# File 'lib/pokotarou/arguments/def_args.rb', line 1

def args; Arguments.args end

#constObject



1
# File 'lib/pokotarou/additional_variables/def_variable.rb', line 1

def const; AdditionalVariables.const end

#is_array?(val) ⇒ Boolean

Returns:

  • (Boolean)


218
219
220
# File 'lib/pokotarou/expression_parser.rb', line 218

def is_array? val
  val.instance_of?(Array)
end

#is_column_symbol?(val) ⇒ Boolean

Returns:

  • (Boolean)


207
208
209
210
# File 'lib/pokotarou/expression_parser.rb', line 207

def is_column_symbol? val
  return false unless val.kind_of?(String)
  COLUMN_REGEXP =~ val
end

#is_expression?(val) ⇒ Boolean

Returns:

  • (Boolean)


213
214
215
216
# File 'lib/pokotarou/expression_parser.rb', line 213

def is_expression? val
  return false unless val.kind_of?(String)
  EXPRESSION_REGEXP =~ val
end

#is_foreign_key?(val) ⇒ Boolean

Returns:

  • (Boolean)


201
202
203
204
# File 'lib/pokotarou/expression_parser.rb', line 201

def is_foreign_key? val
  return false unless val.kind_of?(String)
  FOREIGN_KEY_REGEXP =~ val
end

#is_integer?(val) ⇒ Boolean

Returns:

  • (Boolean)


222
223
224
# File 'lib/pokotarou/expression_parser.rb', line 222

def is_integer? val
  val.instance_of?(Integer)
end

#is_need_update?(val) ⇒ Boolean

Returns:

  • (Boolean)


226
227
228
229
# File 'lib/pokotarou/expression_parser.rb', line 226

def is_need_update? val
  return false unless val.kind_of?(Hash)
  val.has_key?(:NeedUpdate)
end

#is_nil?(val) ⇒ Boolean

Returns:

  • (Boolean)


231
232
233
# File 'lib/pokotarou/expression_parser.rb', line 231

def is_nil? val
  val.nil?
end

#letObject



3
# File 'lib/pokotarou/additional_variables/def_variable.rb', line 3

def let; AdditionalVariables.let end

#load_filepathObject



6
7
8
9
10
11
# File 'lib/pokotarou/expression_parser.rb', line 6

def load_filepath
  require AdditionalVariables.filepath
  require Arguments.filepath
  AdditionalMethods.filepathes.each do |filepath|; require filepath end
  AdditionalMethods.filepathes_from_yml.each do |filepath|; require filepath end
end