Module: Arguments

Defined in:
lib/pokotarou/arguments/arguments.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.argsObject (readonly)

Returns the value of attribute args.



5
6
7
# File 'lib/pokotarou/arguments/arguments.rb', line 5

def args
  @args
end

Class Method Details

.filepathObject



18
19
20
# File 'lib/pokotarou/arguments/arguments.rb', line 18

def filepath
  "pokotarou/arguments/def_args.rb"
end

.import(hash_data) ⇒ Object



7
8
9
10
11
12
# File 'lib/pokotarou/arguments/arguments.rb', line 7

def import hash_data
  unless hash_data.kind_of?(Hash)
    raise MisMatchArgType.new("Please use Hash for args")
  end
  @args = hash_data
end

.removeObject



14
15
16
# File 'lib/pokotarou/arguments/arguments.rb', line 14

def remove
  @args = nil
end