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



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

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

.import(hash_data) ⇒ Object



7
8
9
10
11
12
13
# 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



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

def remove
  @args = nil
end