You Can Use Monkey Patch, But you never change the hard-coded values, which are defined on files.
As per above snippets, its like modified when programming is running based on condition.